So last night I hacked up possibly my favorite project either. The Konami Unicorn Blitz.
This sprang out of a post I saw on Boing Boing about their new keyboard shortcuts.
“Reminder! You can now jump between posts on the front door of Boing Boing by hitting J and K. It should work on most browsers. Any similar UI requests? Under consideration: L to go to the next 30 posts; and the Konami Code to trigger a unicorn invasion.“
So I implemented it, it wasn’t hard just a matter of finding all the pieces and gluing them together.
You can try it on this site, right now.
Just hit UP – UP – DOWN – DOWN – LEFT – RIGHT – LEFT – RIGHT – B – A

Before The Konami Code

After The Konami Code
Fantastic!
Posted May 27th, 2010 - PermalinkOver lunch today I came across this link on HN: comp.lang.c: For loops help
The request was for a program that would print this:
*
***
*****
*******
*********
*********
*******
*****
***
*and the reply was this
#define M 002354l #define A 000644l #define G 000132l #define I 000322l #define C 000374l #define a ; #define b for #define c ++ #define d % #define e int #define f , #define g - #define h 011 #define i = #define j { #define k ) #define l '\n' #define m main #define n < #define o } #define p > #define q && #define r ( #define s || #define t ? #define u putchar #define v void #define w '*' #define x : #define y ' ' #define _ / #define C_O_O_L return e u r e k a e m r v k j j j j j j j j j j j j j j j j j j j j j j j j e z a b r z i M _ A _ G _ I _ C a z n G a u r z d h + z _ h p M _ A q z d h + z _ h n M _ G q z _ h n z d h + M _ I q z _ h p z d h g M _ C t w x y k f z d h g h + 1 s u r l k f z c k a u r l k a j j j j j j j j j j j C_O_O_L M _ A _ G _ I _ C a o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
I went ahead and compiled it, works like a charm:
jmhobbs@katya:~/Desktop$ gcc awesome.c
jmhobbs@katya:~/Desktop$ ./a.out
*
***
*****
*******
*********
*********
*******
*****
***
*
jmhobbs@katya:~/Desktop$So cool.
Posted May 12th, 2010 - PermalinkI had no idea you could do this. It’s a pretty cool trick.
Posted April 20th, 2010 - Permalink
“Schrödinger’s cat walks into a bar. And doesn’t.”
- Brian Malow
Science Comedian