Skip to content

Instantly share code, notes, and snippets.

@icebreaker
Last active April 13, 2016 20:08
Show Gist options
  • Select an option

  • Save icebreaker/205759fdf0c61f9d9f7ced311aaee347 to your computer and use it in GitHub Desktop.

Select an option

Save icebreaker/205759fdf0c61f9d9f7ced311aaee347 to your computer and use it in GitHub Desktop.
nyan.c - IOCCC warm-up
#include <stdio.h>
#include <unistd.h>
int main(){const char *O_o[]=/*msz*/{
" ,------,\n" "v| /\\__/\\ \n"
" |__( ^ w ^) \n" " \" \"\n",
" ,------,\n"
"~| /\\__/\\\n"
" |___( ^ w ^) \n"
" \" \"\n",
" ,------,\n" "^| /\\__/\\\n"
" |___( ^ w ^) \n" " \" \"\n" };
int i=1;for(;;){printf("%s\x1b[4A",
O_o[(i=(i+1)%3)]);usleep(200000);}}
@icebreaker
Copy link
Author

curl -sS https://gist.githubusercontent.com/icebreaker/205759fdf0c61f9d9f7ced311aaee347/raw/b9bf931b258cb195f736554eb0997319de4d1aa8/nyan.c | cc -o nyan -xc - ; ./nyan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment