Skip to content

Instantly share code, notes, and snippets.

@qrush
Created July 27, 2015 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrush/52f19f2f294cfb4f1635 to your computer and use it in GitHub Desktop.
Save qrush/52f19f2f294cfb4f1635 to your computer and use it in GitHub Desktop.
lines = File.readlines("/usr/share/dict/american-english")
trumps = lines.select { |line| line =~ /^[a-z]/ }.reject { |line| line =~ /\'/ }.map do |line|
"Trump #{line[0].upcase}#{line[1..-1]}"
end.compact
trumps.shuffle.each { |line| puts line }; nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment