2015-01-01から1ヶ月間の記事一覧
$ ls 123_1.txt 123_11.txt 123_12.txt 123_13.txt 123_2.txt 123_3.txt $ ls | sort -t '_' -k 2n 123_1.txt 123_2.txt 123_3.txt 123_11.txt 123_12.txt 123_13.txt
対象のファイルがUTF8だったりUTF16だったりする時に何も考えずeach_lineで読み込む方法がわからないのでわかったらここに書く バイトオーダーマーク - Wikipedia UTF-16はBOM必須なので判別して File.open(<path>, 'rb:UTF-16')として読む</path>
Vimperatorプラグインの let 再宣言エラーの修正 by teramako · Pull Request #12 · hatena/hatena-bookmark-xul · GitHub 取り込まれるまではこれを使わせてもらうことにした。 ghq get teramako/hatena-bookmark-xul cd ~/src/github.com/teramako/hatena-…
2015/1/1 Taipei 101