-
visual 模式下面能用
o
来切换选中上下 -
repeat:
.
和,
用来重复上一次对字符串的操作 -
visual模式下可以这样用:
:'<,'>g/text_feature/vimcommand
:'<,'>g/text_feature/s/this/that
operator infix => { associativity left } | |
func => <K : Hashable, V>(key: K, value: V) -> (K, V) { | |
return (key, value) | |
} | |
let pairs: (String, Int)[] = [ | |
"e" => 10, | |
"t" => 7, | |
"i" => 2 | |
] |
operator infix => { associativity left } | |
func => <K : Hashable, V>(key: K, value: V) -> (K, V) { | |
return (key, value) | |
} | |
let pairs: (String, Int)[] = [ | |
"e" => 10, | |
"t" => 7, | |
"i" => 2 | |
] |
location /assets/ { | |
gzip_static on; | |
expires max; | |
add_header Cache-Control public; | |
add_header Access-Control-Allow-Origin *; | |
} |
class Pipe(object): | |
def __init__(self, func): | |
self.func = func | |
def __ror__(self, other): | |
def generator(): | |
for obj in other: | |
if obj is not None: | |
yield self.func(obj) | |
return generator() |
/** | |
* 格式化时间戳为人性化的时间 | |
* @param {String} publishTime 时间戳 | |
* @return {String} 人性化时间 | |
*/ | |
function formatTime(publishTime) { | |
var d_minutes, d_hours, d_days; | |
var timeNow = parseInt(new Date().getTime() / 1000, 10); | |
var d; |
var page = require('webpage').create(); | |
// User-Agent is supported through page.settings | |
page.settings.userAgent = 'Mozilla/5.0 (iPad; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5355d Safari/8536.25'; | |
// This is how you set other header variables | |
page.customHeaders = {'Referer': 'localhost'}; |
#!/bin/sh | |
# Author: RA <ravageralpha@gmail.com> | |
USAGE(){ | |
echo "Usage:$(basename $0) [eng] files..." | |
} | |
[ $# -eq 0 ] && USAGE && exit 0 | |
ERROR(){ |