ruby 'mind.rand' | awk '{ print $1 }'

ruby: print in the same line

I’ve always tried to make my scripts’ responses prettier and less crowded, and I came across something like the following piece of code, that helped me a lot lately #!/usr/bin/env ruby STDOUT.sync = true bars = ['/','-','\\','|'] i=1 while i do print "\rrunning #{bars[i%4]}" i += 1 sleep 1 end trap("INT") { print "\n\n" exit } If you like to see updates without flooding your terminal screen, this is...

xkcd = win

Well, my opinion is biased since I already follow the short comic strips in xkcd, but it was just surprisingly awesome to check it today, and see the tribute made to GeoCities and its history. Some memorable parts stripped from the source code: Line 32: <SCRIPT LANGUAGE="QBASIC">IF $BROWSER = "IE" THEN GOTO 50</SCRIPT> Line 108: <SCRIPT LANGUAGE=’SCHEME’> define (eval exp env) (cond...

dreamcatcher

I used to be a part of a list where we would write our dreams and share them, and I remember it was a fun thing to do, so I started taking notes, and posting them on this blog. Like the wishlist, they won’t show in the home page, but they are accessible by the categories section, or using this link Feel free to read, comment and judge...

field trip

Somehow I was back in high school, where I saw a couple of really good friends that I’ve lost touch with, it was really refreshing to see them again – I still never asked one of them about his son, and that makes me feel really bad (the baby is almost 2). I had a vision in my dream, related to the same friend – I saw how he was dressed in his first day of school (red boots, a leather wrist piece are the...

bloom frame

...
Page 2 of 41234
Powered by Wordpress | Designed by Elegant Themes