Skip to content

Instantly share code, notes, and snippets.

@rubyworks
Created February 23, 2010 14:52
Show Gist options
  • Save rubyworks/312240 to your computer and use it in GitHub Desktop.
Save rubyworks/312240 to your computer and use it in GitHub Desktop.
Oneliner - Duck 1
s="\033[2J\033[0;0H _\n Quack! >(')____,\n (` =~~/\n~^~^~^~^~^`---'~^~^~^~^";
(1..(1/0.0)).each{|i|s[23,6]=(i%2)==0?"Quack!":" "*6;s.tr!('>~^^~<','<^~~^>');puts s;sleep 1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment