Skip to content

Instantly share code, notes, and snippets.

@DavidBuchanan314
Created December 4, 2016 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidBuchanan314/22effa437afaddd24bd138f536df9f42 to your computer and use it in GitHub Desktop.
Save DavidBuchanan314/22effa437afaddd24bd138f536df9f42 to your computer and use it in GitHub Desktop.
#define F for(i=0;i<l;i++)
#define W;write(1,// Hire Me
main(n){int i,j,w=640,h=480,
l=w*h,o[]={-w-1,-w,-w+1,-1,1
, w-1, w, w+1}; char b[l*4];
memset(b, 128, l*3); F b[i]=
rand()W"YUV4MPEG2 W640 H480"
" F60:1 C444\n",31);for(W"F"
"RAME\n",6)W b,l*3)){F{for(n
=0,j=0;j<8;n+=b[(i+l+o[j++])
%l]&1);b[i+l*3]=!(n==3|b[i]&
n==2)-1;}memcpy(b,b+l*3,l);}
}//gcc gol.c &&./a.out|mpv -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment