Skip to content

Instantly share code, notes, and snippets.

@mattantonelli
Last active August 29, 2015 14:06
Show Gist options
  • Save mattantonelli/3d5eaa8399a84dd8df96 to your computer and use it in GitHub Desktop.
Save mattantonelli/3d5eaa8399a84dd8df96 to your computer and use it in GitHub Desktop.
A Ruby script to stroke your ego! Or not!
#!/usr/bin/env ruby
# encoding: utf-8
ego_level = ARGV[0].to_i
if ego_level == 0
puts "You're pretty average."
else
puts "You are s#{'o' * ego_level.abs} #{ego_level < 0 ? 'un' : ''}cool!!!"
end
@mattantonelli
Copy link
Author

$ ruby ego_stroker.rb 20
You are soooooooooooooooooooo cool!!!
$ ruby ego_stroker.rb 0
You're pretty average.
$ ruby ego_stroker.rb -20
You are soooooooooooooooooooo uncool!!!

@TrevorS
Copy link

TrevorS commented Sep 18, 2014

████████╗██╗  ██╗ █████╗ ███╗   ██╗██╗  ██╗███████╗
╚══██╔══╝██║  ██║██╔══██╗████╗  ██║██║ ██╔╝██╔════╝
   ██║   ███████║███████║██╔██╗ ██║█████╔╝ ███████╗
   ██║   ██╔══██║██╔══██║██║╚██╗██║██╔═██╗ ╚════██║
   ██║   ██║  ██║██║  ██║██║ ╚████║██║  ██╗███████║
   ╚═╝   ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝  ╚═╝╚══════╝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment