Skip to content

Instantly share code, notes, and snippets.

@rmetzler
Created April 26, 2024 07:50
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 rmetzler/bdfaa44bb0953e58b36742a2cdbadc61 to your computer and use it in GitHub Desktop.
Save rmetzler/bdfaa44bb0953e58b36742a2cdbadc61 to your computer and use it in GitHub Desktop.
def smiley
# this is also possible
# %w[ :-) X-) ;-) :-( B-D B-D ].sample
[":-)", "X-)", ";-)", ":-(", "B-D"].sample
end
(0..100).each {|x| puts "#{ ' '*x }#{smiley}"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment