This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ~/.vim/after/ftplugin/ruby.vim | |
setlocal expandtab | |
setlocal shiftwidth=2 | |
setlocal softtabstop=2 | |
setlocal tabstop=2 | |
setlocal autoindent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* エポック秒→日時変換 | |
* | |
* 「スクリプト実行」用スクリプト | |
* http://books.ivory.ne.jp/execscript/ | |
*/ | |
var lines = data.split("\n"), | |
line, | |
i, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* URLエンコード | |
* | |
* 「スクリプト実行」用スクリプト | |
* http://books.ivory.ne.jp/execscript/ | |
*/ | |
var lines = data.split("\n"); | |
var outdata = new Array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 行末清掃 | |
* (行末の余計な空白やタブを削除する) | |
* | |
* 「スクリプト実行」用スクリプト | |
* http://books.ivory.ne.jp/execscript/ | |
*/ | |
var lines = data.split("\n"); | |
var outdata = new Array(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 連番付け替え | |
* | |
* (before) | |
* 1. aaa | |
* 2. bbb | |
* 2. ccc | |
* | |
* (after) | |
* 1. aaa |