More Tweetable Scripts- April 27, 2008 A few more tweetable commandlines have emerged since I posted the last round-up. From pupitetris, this little work of art: a=1;for i in 1..34;do printf %$40-$as"$(eval $(echo $a$a&124;bc&124;sed 's$0;s(0-9)tput setab 1; echo -n ;g'))"n;a=1$a;done This Linux-specific commandline from Justin: s=.o0O0o.o0O0o.o0O0o.o0O0o.o0O0o.o0O0o.o0;n() for x in seq $1 $2 $3;do notify-send $s:0:x; done ;while :;do n 1 2 39;n 39 ...http://nat.org/blog/?p=826 Ten Tweetable Scripts- April 11, 2008 Yesterday morning I proposed a contest to create the best one-line program that would fit inside Twitter's 140-character buffer. To kick things off, I wrote this 105-character script which displays a small animation: s="-&60;";while true;do echo -ne "$sr";s=sed 's-&62;$-&60;-;s&60;&62;;s-&60;&60;-;s&62;--&62;;'&60;&60;&60;$s;sleep 0.1;done Arturo (or Pupi as his friends call him) wrote a 135-character morse code decoder in shell: ...http://nat.org/blog/?p=825 Take the Tweetable Script Challenge- April 10, 2008 Twitter limits posts ("tweets") to 140 characters. This constraint makes sending updates to your friends challenging, but it makes programming more interesting. I just tweeted this 105 character shell script: s="-&60;";while true;do echo -ne "$sr";s=sed 's-&62;$-&60;-;s&60;&62;;s-&60;&60;-;s&62;--&62;;'&60;&60;&60;$s;sleep 0.1;done (Pasting from the tweet link seems to work a lot better than pasting from my blog &8212; ...http://nat.org/blog/?p=824 |