start new:
tmux
start new with session name:
tmux new -s myname
curl -fsSL get.docker.com -o get-docker.sh | |
sh get-docker.sh |
$.fn.bindUp = function(type, fn) { | |
type = type.split(/\s+/); | |
this.each(function() { | |
var len = type.length; | |
while( len-- ) { | |
$(this).bind(type[len], fn); | |
var evt = $.data(this, 'events')[type[len]]; |
``` | |
放一点命令行操作备忘 | |
``` |
## curl http://invisible-island.net/luit/luit.html#download | |
## ./configure && ./make && ./make install | |
luit -encoding gbk ssh xxx |
*Q_ss* 插入模式特殊键 | |
|i_CTRL-V| CTRL-V {char}.. 按本义插入字符,或插入十进制数的字节值 | |
|i_<NL>| <NL> 或 <CR> 或 CTRL-M 或 CTRL-J | |
开始新行 | |
|i_CTRL-E| CTRL-E 插入光标下方的字符 | |
|i_CTRL-Y| CTRL-Y 插入光标上方的字符 | |
|i_CTRL-A| CTRL-A 插入上次插入的文本 | |
|i_CTRL-@| CTRL-@ 插入上次插入的文本并结束 |
function wait(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms || 1)) | |
} |
'use strict'; | |
// 重试间隔 | |
var INTERVAL = 1000; | |
// mock ajax data 只作演示 | |
var success = false; | |
/** | |
* keepTry |
#hack { | |
color:red; /* All browsers */ | |
color:red !important;/* All browsers but IE6 */ | |
_color:red; /* Only works in IE6 */ | |
*color:red; /* IE6, IE7 */ | |
+color:red;/* Only works in IE7*/ | |
*+color:red; /* Only works in IE7 */ | |
color:red\9; /* IE6, IE7, IE8, IE9 */ | |
color:red\0; /* IE8, IE9 */ | |
color:red\9\0;/*Only works in IE9*/ |
function complex({ name, email, phone = null }) { | |
//variables `name`, `email`, and `phone` are available here | |
} | |
var user = { | |
name: 'foo', | |
email: 'bar', | |
phone: '123456' | |
}; |