Skip to content

Instantly share code, notes, and snippets.

@EastResident
Created July 9, 2016 12:59
Show Gist options
  • Save EastResident/16117ff42b9aabf895b479a0ab733493 to your computer and use it in GitHub Desktop.
Save EastResident/16117ff42b9aabf895b479a0ab733493 to your computer and use it in GitHub Desktop.
def main
count = 0
uniq_list = []
f = open('write', 'w')
open_each_ss('parsed_mobamasu_kai') do |row|
array = row.strip.split(' ')
array.uniq.each do |word|
if !uniq_list.include?(word)
uniq_list << word
end
end
count += 1
p count
end
f.write uniq_list.join(' ')
f.close
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment