Skip to content

Instantly share code, notes, and snippets.

@mrgordon
mrgordon / gist:3785241
Created September 26, 2012 00:14
hopefully this can work
websites = {}
@@words_of_interest = Marshal::load(File.read('models/tags.array'))
Website.order("id desc").limit(7495).each do |w|
websites[w.id] = w.url
end
rows = CSV.read("/tmp/answers_from_cat_modified_utf8.csv", :headers=>true)
output = CSV.open('output.csv', 'wb')