MaxSky MaxSky
4年前
JavaScript 笛卡尔积算法,可用于商品 SKU 计算
代码示例:Demo演示:jsfunctioncalcDescartes(array){if(array.length<2)returnarray0||;return.reduce.call(array,function(col,set){varres;
Wesley13 Wesley13
3年前
iOS 用objective
如:123456789变为:123,456,789直接上代码(NSString)countNumAndChangeformat:(NSString)num{intcount0;longlongintanum.longLongValue;w
Stella981 Stella981
3年前
JS夯实基础:Javascript 变态题解析 (下)
functionsidEffecting(ary){ary0ary2;}functionbar(a,b,c){c10sidEffecting(arguments);returnabc;}bar(1,1,1)16
Wesley13 Wesley13
3年前
Java Scheduler ScheduledExecutorService ScheduledThreadPoolExecutor Example(ScheduledThreadPoolEx...
<divclass"entrycontent"itemprop"text"<!QuickAdsenseWordPressPlugin:http://quickadsense.com/<divstyle"float:none;margin:10px010px0;textalign:center;"<di
Stella981 Stella981
3年前
GridView实现九宫格
GridViewgv(GridView)findViewById(R.id.g1);    ArrayList<HashMap<String,ObjectdatanewArrayList<HashMap<String,Object();    for(inti0;i<images.length;i)
Wesley13 Wesley13
3年前
Ubuntu 16.04 + OpenCV 自定义环境变量 pkg
0\.前言今天在执行一段脚本的时候,爆出错误:Packageopencvwasnotfoundinthepkgconfigsearchpath.Perhapsyoushouldaddthedirectorycontainingopencv.pc'tothePKG_CONFI
Stella981 Stella981
3年前
ELK学习笔记之配置logstash消费kafka多个topic并分别生成索引
0x00 filebeat配置多个topicfilebeat.prospectors:input_type:logencoding:GB2312fields_under_root:truefields:添加字段
Wesley13 Wesley13
3年前
Mysql 分区表
DROPTABLEIFEXISTS\frank\_test\;CREATETABLE\frank\_test\(\id\bigint(20)NOTNULLAUTO\_INCREMENTCOMMENT'主键id',\gid\bigint(20)DEFAULT'0'COMMENT'基础表id'
Stella981 Stella981
3年前
HDOJ1021题 Fibonacci Again 应用求模公式
ProblemDescriptionThereareanotherkindofFibonaccinumbers:F(0)7,F(1)11,F(n)F(n1)F(n2)(n2).InputInputconsistsofasequenceoflines,eachcontaini
Stella981 Stella981
3年前
JavaScript 中 this 是如何工作的 ?
先来看看这个题目:varx0;varfoo{x:1,bar:{x:2,baz:function(){console.log(this.x)}}}