Skip to content

Instantly share code, notes, and snippets.

stems = ARGF.read
.split
.each_cons(2)
.group_by(&:first)
def next_word(ary)
ary.sample[1]
end
e = Enumerator.new do |e|
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