D
Daniel Nugent
Give out your favorite one liner, what it does, and when you use it.
For me:
puts ARGV[rand(ARGV.size)]
It randomly prints one of the command line options passed to it. I
typically use it to make a decision when I have no preference (or have
equal distaste) for my available options.
For instance
ruby -e "puts ARGV[rand(ARGVsize)]" "shoot self in head" "use Java"
For me:
puts ARGV[rand(ARGV.size)]
It randomly prints one of the command line options passed to it. I
typically use it to make a decision when I have no preference (or have
equal distaste) for my available options.
For instance
ruby -e "puts ARGV[rand(ARGVsize)]" "shoot self in head" "use Java"