Tuesday, May 24, 2011

One liner

Someone gave this to me today. On Linux, compile the following viznut.c:

#include <math.h>

main(v,i,z,n,u,t){for(v=-1;;)for(n=pow(1.06,"`cW`g[`cgcg[eYcb^bV^eW^be^bVecb^"[++v&31]+(v&64)/21),i=999;i;putchar(128+((8191&u)>i?0:i/8)-((8191&(z+=n))*i-->>16)))u+=v&1?t/2: (t=v&6?t:n/4);}

like this: gcc viznut.c
-lm -o viznut.

Then, execute ./viznut >/dev/dsp.

No comments: