2006-09-28から1日間の記事一覧
エロ動画を勝手に探してダウンロードするスクリプト。 http://porntoolkit.sourceforge.net/
function! DetectFSF() let i = 1 let l = "" while i <= 10 let l = l . getline(i) let i = i + 1 endwhile if l =~ "Copyright.*Free Software Foundation" set ts=8 return endif endfunctionEmacs の "-*-" にも対応したかったけど面倒なのでやめた。 "…
function align() { ruby - "$@" <<EOF if ARGV.length > 1 delim = ARGV.shift else delim = nil end lines = readlines().collect {|x| x.chomp} maxlens = {} for l in lines words = l.split(delim) words.each_with_index do |w,i| if not maxlens[i] or w.length > maxlens[</eof>…