FREE BURMA!

( ? , qUeStIoNMaRk )

Seeking for a sustainable amount of chaos. AKA an electronic stream of consciousness about software engineering, open source, life. By Marco Fabbri.

December 24, 2008

Nerdy Christmas (take 2)

Filed under: life, fun, geek

Improving on last year’s version…

Geeky Christmas and Nerdy New Year! Wishes from the shell

…and for the coding-inclined here comes the source

#!/bin/bash

#lights_off
#
#          *==<
#           /\
#          /  \
#         / @  \
#        /      \
#       / @    @ \
#           ||
#
#       NERDY CHRISTMAS
#       AND
#       GEEKY NEW YEAR!
#

#lights_on
#
#          *==<
#           /\
#          / *\
#         / @  \
#        / *  * \
#       / @  * @ \
#           ||
#
#       NERDY CHRISTMAS
#       AND
#       GEEKY NEW YEAR!
#

	
frows=14;
stime=1;
which tput >/dev/null || alias tput=“clear”;
	
display(){
    tput cup 0 0;
    grep -A$frows \#”$1″ “$0″ | tail -n$frows | sed ’s/#/\ /’;
}
	
animation(){
     display lights_off && sleep $stime;
     display lights_on && sleep $stime
}
	
clear;
yes | while read i;
do animation;
done;

1 Comment »

The URI to TrackBack this entry is: http://questionmark.blogsome.com/2008/12/24/nerdy-christmas-take-2/trackback/

  1. wow, looks so cool!

    Comment by tarot card — January 16, 2009 @ 4:20 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>


Safely store your passwords on

Clipperz - online password manager

Get free blog up and running in minutes with Blogsome | Theme designs available here