Update newline characters to CR

see: http://en.wikipedia.org/wiki/Newline
Command:
$ dos2unix `git ls-files`
Fix indent and format
Typo
format
Use Array#sample
Specify Ruby version
Merge pull request #2 from fujimura/various-fixes

Various fixes