$ python3 -m ReadEm.serve
rvm get stable
- check here for latest stable release
rvm install <latest stable version>
rvm --create --ruby-version <x.x.x>@<project> #creates a gemset and dotfiles
gem install bundler
bundle init
bundle add rails
bundle add bootsnap
(workaround for issue withrails new
)
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
require 'minitest/autorun' | |
# Turns an zero-based index into an excel column name | |
def excel_column_name(i) | |
digits = ("A".."Z").to_a | |
return digits[i] if i < 26 | |
"#{excel_column_name(i/26 - 1)}#{excel_column_name(i % 26)}" | |
end |