介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
defaults write com.apple.screencapture disable-shadow -bool true | |
killall SystemUIServer |
hg clone https://bitbucket.org/ZyX_I/vim | |
cd vim | |
hg update 24-bit-xterm | |
cd src && make autoconf && cd .. | |
./configure \ | |
--enable-gui=no \ | |
--without-x \ | |
--enable-multibyte \ | |
--with-tlib=ncurses \ |
let &t_8f="^[[38;2;%lu;%lu;%lum" | |
let &t_8b="^[[48;2;%lu;%lu;%lum" |
var s1 = Math.sin(Math.PI*0.4), | |
s2 = Math.sin(Math.PI*0.8), | |
c1 = Math.cos(Math.PI*0.4), | |
c2 = Math.cos(Math.PI*0.2), | |
L = 1500, | |
one = 1500 / (s1*2), | |
a = one*s2*2; | |
console.log([ | |
[one*s1, one*(1+c2)], |
{ | |
"no_tabs": { | |
"level": "error", | |
"message": "Line contains tab indentation" | |
}, | |
"no_trailing_whitespace": { | |
"level": "ignore", | |
"message": "Line ends with trailing whitespace" | |
}, | |
"max_line_length": { |
fun! Coscup() | |
let w = winwidth(0) - 5 | |
let h = winheight(0) - 1 | |
let rowstr = repeat(' ', w/2) . '|' . repeat(' ', w/2) | |
let rowstr0 = repeat('-', w/2) . '+' . repeat('-', w/2) | |
exe "normal ggdG" | |
exe "normal i" . rowstr | |
for i in range(1, h) | |
let i = i + 1 |
let g:switch_custom_definitions = | |
\ [ | |
\ { | |
\ '\<\(\l\)\(\l\+\(\u\l\+\)\+\)\>': '\=toupper(submatch(1)) . submatch(2)', | |
\ '\<\(\u\l\+\)\(\u\l\+\)\+\>': "\\=tolower(substitute(submatch(0), '\\(\\l\\)\\(\\u\\)', '\\1_\\2', 'g'))", | |
\ '\<\(\l\+\)\(_\l\+\)\+\>': '\U\0', | |
\ '\<\(\u\+\)\(_\u\+\)\+\>': "\\=tolower(substitute(submatch(0), '_', '-', 'g'))", | |
\ '\<\(\l\+\)\(-\l\+\)\+\>': "\\=substitute(submatch(0), '-\\(\\l\\)', '\\u\\1', 'g')", | |
\ } | |
\ ] |
(function (a) { | |
a.fn.extend({ | |
xxMethod: function (options) { | |
return this.each(function () { | |
var b = a(this); | |
a(b).each(function () { | |
//blah... | |
}); | |
}); | |
} |
--- Day changed Sun Aug 19 2012 | |
00:01 -!- Alisha [72262a5c@gateway/web/freenode/ip.114.38.42.92] has quit [Quit: Page closed] | |
00:02 -!- orinx|bof is now known as orinx|sleep | |
00:02 -!- play [~AndChat59@111-248-106-192.dynamic.hinet.net] has joined #coscup | |
00:02 -!- bobchao [~bobchao@202-169-164-141.aspublic.wlan.sinica.edu.tw] has joined #coscup | |
00:02 -!- mode/#coscup [+o bobchao] by ChanServ | |
00:03 -!- play [~AndChat59@111-248-106-192.dynamic.hinet.net] has quit [Client Quit] | |
00:03 -!- nemu [72180666@gateway/web/freenode/ip.114.24.6.102] has joined #coscup | |
00:04 -!- kevin6861 [3d46d92d@gateway/web/freenode/ip.61.70.217.45] has quit [] | |
00:06 -!- kengyu [~Keng-Yu@42.71.190.169] has joined #coscup |