上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页
摘要: https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1561552141135&di=170679fcee4e69499f94b5167c8e474a&imgtype=0&src=http%3A%2F%2Fb-ssl 阅读全文
posted @ 2019-06-26 18:35 无工时代 阅读(266) 评论(0) 推荐(0) 编辑
摘要: //回行扫描函数 left、top、right、bottom function scanRound(x,y,w,h,isOpenFunc,callfunc) { const map={} function isOpen(x,y) { if(map[x+','+y]){ return 0 } if(x=w||... 阅读全文
posted @ 2019-06-26 11:18 无工时代 阅读(250) 评论(0) 推荐(0) 编辑
摘要: app.js 特征函数 makeFeatures.js 配置文件,定义了分类名称、训练集位置 config.js 入口工具,存在了bayes公式相关运算 utils/Bayes.js 每个文件都有特征,将特征组合成矩阵 单个特征存在的情况,属于类别的概率,getFeaPosInTag.js 找出每个 阅读全文
posted @ 2019-06-21 18:27 无工时代 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 已上传到npm,NPM包地址: https://www.npmjs.com/package/exec-mathexpress //运行demo 阅读全文
posted @ 2019-06-19 18:52 无工时代 阅读(10324) 评论(0) 推荐(1) 编辑
摘要: //app3.js//给less加上webkit前缀const glob=require('glob');const autoprefixer = require('autoprefixer')const postcss = require('postcss')const fs = require('fs')const syntax = require('postcss-less');const... 阅读全文
posted @ 2019-06-17 23:11 无工时代 阅读(470) 评论(0) 推荐(0) 编辑
摘要: //mkdir.js const fs=require('fs'); const dirCache={}; function mkdir(filepath) { const arr=filepath.split('/'); let dir=arr[0]; for(let i=1;i<arr.length;i++){ if(!dirCache[dir]&&!... 阅读全文
posted @ 2019-06-14 17:03 无工时代 阅读(6293) 评论(1) 推荐(0) 编辑
摘要: 为了性能优化,找出项目中没有用到的css、png、jpeg、jpg、js文件,对项目总体的资源有一个管理控制。 ### 技术栈 glob、ac多字符自动机、fs、path findNouseSource.js nouse.map 阅读全文
posted @ 2019-06-14 16:08 无工时代 阅读(309) 评论(0) 推荐(0) 编辑
摘要: TinyCss.js 阅读全文
posted @ 2019-06-10 18:14 无工时代 阅读(637) 评论(0) 推荐(0) 编辑
摘要: 在遍历html语法树中用到了深度优先遍历和广度优先遍历,就自己用js实现了下 测试 阅读全文
posted @ 2019-06-08 10:48 无工时代 阅读(3056) 评论(0) 推荐(1) 编辑
摘要: 每个合数都可以写成几个质数相乘的形式,其中每个质数都是这个合数的因数,把一个合数用质因数相乘的形式表示出来,叫做分解质因数。如30=2×3×5 。分解质因数只针对合数。 demo 阅读全文
posted @ 2019-06-04 12:19 无工时代 阅读(758) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页