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
stems = ARGF.read | |
.split | |
.each_cons(2) | |
.group_by(&:first) | |
def next_word(ary) | |
ary.sample[1] | |
end | |
e = Enumerator.new do |e| |
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
STARTING UP WITH RAILS Tunr App | |
$ rails new tunr_app -d postgresql -T | |
* update database.yml —> change default username to my username | |
* remove default index page —> $ rm public/index.html | |
$ rake db:create |