Skip to content

Instantly share code, notes, and snippets.

@tbodt
Last active August 29, 2015 14:19
Show Gist options
  • Save tbodt/b7f7c8866c2980f2dc6b to your computer and use it in GitHub Desktop.
Save tbodt/b7f7c8866c2980f2dc6b to your computer and use it in GitHub Desktop.
snowflake
int N = 0;
int _;
int O = 328;
int l = 192;
int y = 4;
int Y[80][64] = {0};
int I;
char *F = "JF>:>FB;;BII";
int f(x) {
N = (N + x) % 6,y--?f(0),f(1),f(4),f(1):++Y[(I=O+N[F]-66) /16][(_=l+N[6+F]-66)/16]?O/=16,l/=32,O<I/16?b("C"):O>I/16?b("D"):1,O=I,I/=16,l<_/3
2?b("B"):l>_/32?b("A"):2,l=_,_/=16,Y[I][_^1]?a(":" "\b"):_&1?a("." "\b"):a("`" "\b"):8;
++y;
}
int b(char *x) {
write(1, "\033[", 2);
a(x);
}
int a(char *x) {
write(1, x, strlen(x));
for ( ; --c.c ; )
;
for ( ; --c.c ; )
;
for ( ; --c.c ; )
;
for ( ; --c.c ; )
;
}
int main() {
b("2J");
b("7;21H");
f(0);
f(4);
f(4);
b("H");
}
int N=0,_,O=328,l=192,y=4,Y[80][64]={0},I;struct LameJavaApp
{
short c;}c;typedef int BufferedReader;char*F="JF>:>FB;;BII"; f(x){N=(N+x)%6,y--?f(0),f(1),f(4),f(1):++Y[(I=O+N[F]-66) /16][(_=l+N[6+F]-66)/16]?O/=16,l/=32,O<I/16?b("C"):O>I/16?b("D"):1,O=I,I/=16,l<_/3
2?b("B"):l>_/32?b("A"):2,l=_,_/=16,Y[I][_^1]?a(":" "\b"):_&1?a("." "\b"):a("`" "\b"):8;++y;} b(char*x){write(1,"\033[",2),a(x);}a(char*x){write(1,x,strlen(x));for(;--c.c;);for(;--c.c;);for(;--c.c;);for(;-
-c.c;);}main()
{
BufferedReader reader =
1;
c.c,c.c;
c;
b("2J"),b("7;21H"),f(0),f(4),f(4),b("H"),
c.c,c.c;
}
int d(int [] );q()
{
{return c.c;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment