会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
吾生也有涯,而知也无涯
心有阳光,正视黑暗
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
25
下一页
2015年11月20日
用nodej和glub-watcher写的监听go 项目自动编译,很鸡肋
摘要: glub 一般都是很轻量的编译。go太重了,改一小个部分,就编译的话,多数是编译失败。而且很消耗性能,还没想到完美的优化办法。暂时用个定时器 监听2秒,停止1秒,如此循环,会减少些 “无效”的编译var watch = require('glob-watcher');var exec = requi...
阅读全文
posted @ 2015-11-20 00:30 cclient
阅读(302)
评论(0)
推荐(0)
2015年11月19日
co + Generator 写的迭代器 类似 async.whilst
摘要: 试着用用Koa,项目里原来有用到async 的whilst用koa再用async感觉不太舒服,就用Generator+co写了个类似async whist的调用的主体功能,像传参这些没有作到var co = require('co');function* whilstGenerator(next, ...
阅读全文
posted @ 2015-11-19 17:15 cclient
阅读(277)
评论(0)
推荐(0)
2015年11月14日
自已实现的async 只实现了一部分功能
摘要: 不得不说,人和人的技术确实有差距,同样的功能,其他人就是有办写写的更优雅性能更好不论是C还是js自已有功能但看着也比人家的丑好多。//最终效果 同async//目前实现了个人最常用的 serial 和 waterfall//实现waterfall// async.waterfall([// ...
阅读全文
posted @ 2015-11-14 19:56 cclient
阅读(280)
评论(0)
推荐(0)
async包 ES6 async/await的区别
摘要: 最基本的async 包 用 async/await+promise 换种方式 只是迭代里换了 async/await迭代器实现 async的迭代器
阅读全文
posted @ 2015-11-14 19:53 cclient
阅读(1941)
评论(0)
推荐(0)
2015年11月5日
javascript json转为 go struct 小工具代码
摘要: 执行结果
阅读全文
posted @ 2015-11-05 14:33 cclient
阅读(470)
评论(0)
推荐(0)
2015年9月19日
android greendao的外部封装不太友好。
摘要: https://github.com/greenrobot/greenDAO 下载下官网的示例,有完整的封装版本,但自已封装是碰到很多问题。 因greenDao的Master和Session中很多方法完全是隐藏的,只属于此类。 很多信息也是隐藏的。 只能基于继承此两类来实现(像官网示例一样) 想通过
阅读全文
posted @ 2015-09-19 17:04 cclient
阅读(384)
评论(0)
推荐(0)
2015年9月15日
redis 内存泄露
摘要: http://www.oschina.net/question/2266476_246221http://stackoverflow.com/questions/24304212/how-to-determine-redis-memory-leak升级2.8解决
阅读全文
posted @ 2015-09-15 11:54 cclient
阅读(1022)
评论(0)
推荐(0)
2015年9月14日
Robolectric 配置
摘要: 费了些工夫,已配好,按记录留记录按官网操作http://robolectric.org/getting-started/1引包testCompile "org.robolectric:robolectric:3.0"示例dependencies { compile fileTree(dir: ...
阅读全文
posted @ 2015-09-14 22:19 cclient
阅读(686)
评论(0)
推荐(0)
android studio 代理配置
摘要: android studio 代理设置,只支持http代理,不能用ss服务中间加一层http转换1远端ss2client ss 端口 A3client privoxy服服 代理ss A端口 到http 端口B4android studio 设置 http 端口B具体见http://www.cnblo...
阅读全文
posted @ 2015-09-14 17:16 cclient
阅读(443)
评论(0)
推荐(0)
2015年8月27日
python 写文件,utf-8问题
摘要: 写文件报数据。同样的编码。含中文字段的输出文件 编码为utf-8无中文的却是ascimport codecstxt = u”qwer”file=codecs.open(“test”,”w”,”utf-8-sig”)file.write(txt)file.close()解决
阅读全文
posted @ 2015-08-27 15:47 cclient
阅读(4096)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
25
下一页
公告