Liuw's Thinkpad

想要赢就先学会输,想要成功就先学会失败

Archive for the ‘tips’ tag

Emacs中删除空行

without comments

m-x flush-lines
^$

Written by liuw

August 31st, 2010 at 5:09 pm

Posted in UNIX-like

Tagged with ,

Erlang tips

without comments

% setting search paths for loading code
@spec code:add_patha(Dir) => true | {error, bad_directory}
@spec code:add_pathz(Dir) => true | {error, bad_directory}

% examine loaded code
code:all_loaded()
code:clash()

% start a server to view error log friendly
webtool:start().

Written by liuw

June 25th, 2009 at 4:34 pm

Posted in Programming

Tagged with ,