Created
November 19, 2012 16:56
-
-
Save tiegz/4111852 to your computer and use it in GitHub Desktop.
Fun ruby one-liner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -e 'c=`tput cols`.to_i;p=->(o){x=0;d=c/4;while(x<1)do puts("█"*(d*Math.sin(x+o)+d));x+=0.1;end};i=0;loop{p.(i);sleep 0.05;i+=0.1}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment