2014年9月29日
摘要: 安装npm install nmq源码:https://github.com/ronwe/nmq此版本提供 pub/sub , 优化 pull 阅读全文
posted @ 2014-09-29 18:31 雨弓 阅读(215) 评论(0) 推荐(0) 编辑
  2014年9月24日
摘要: var net = require('net')var clients = [] ,msgs = {}function unWrapMsg(data){ data = data.toString().trim() var _d = data.split(':' , 2) _d... 阅读全文
posted @ 2014-09-24 17:34 雨弓 阅读(739) 评论(0) 推荐(0) 编辑
  2014年9月1日
摘要: 1 ;(function(global ,undefined){ 2 var evts = {} 3 ,onceTag = '__event_once' 4 function emit(event ){ 5 var args = util.toArr... 阅读全文
posted @ 2014-09-01 15:42 雨弓 阅读(246) 评论(0) 推荐(0) 编辑
  2014年8月20日
摘要: ;(function(global ,undefined){ var cache = {} var sn = '_ret_' function etic(tplId , data){ if (!tplId) return var tplNode =... 阅读全文
posted @ 2014-08-20 17:27 雨弓 阅读(576) 评论(0) 推荐(0) 编辑
  2014年6月27日
摘要: curl http://xxx.com/address/addresslist\?search\=%40 --cookie oa_cookie=123 -s| node parss.js js 代码var jsdom = require('jsdom') ,fs = require('fs... 阅读全文
posted @ 2014-06-27 12:29 雨弓 阅读(458) 评论(0) 推荐(0) 编辑
  2014年6月19日
摘要: 原理是根据屏幕上的坐标找到需要做 lazyload 的区域1,先监听 scroll 事件var threshold = 30 ,scrolling_ltwindow.addEventListener('scroll', function(){ scrolling_lt = new Dat... 阅读全文
posted @ 2014-06-19 13:06 雨弓 阅读(312) 评论(0) 推荐(0) 编辑
  2014年5月9日
摘要: Array.prototype.slice.call(document.links,0).forEach(function(link){link.onmousedown = null})插件总失效 用这个对付下 阅读全文
posted @ 2014-05-09 12:42 雨弓 阅读(145) 评论(0) 推荐(0) 编辑
  2014年5月8日
摘要: vi/etc/ssh/sshd_config注释掉这行Subsystem sftp /usr/libexec/openssh/sftp-server/etc/rc.d/init.d/sshd restart 阅读全文
posted @ 2014-05-08 14:39 雨弓 阅读(1036) 评论(0) 推荐(0) 编辑
  2014年5月7日
摘要: Hello World! 阅读全文
posted @ 2014-05-07 15:37 雨弓 阅读(1087) 评论(0) 推荐(0) 编辑
  2014年5月6日
摘要: function print(){ console.log.apply(console , arguments) }var step ,_lstStp ,_onConfirmInput ,_secretvar action,step_keys ,step_inde... 阅读全文
posted @ 2014-05-06 16:39 雨弓 阅读(3897) 评论(0) 推荐(1) 编辑