Skip to content

Instantly share code, notes, and snippets.

@bblum
Last active May 31, 2018 23:01
Show Gist options
  • Select an option

  • Save bblum/cb545ba39f70bf6bea2f87ba8aaa37be to your computer and use it in GitHub Desktop.

Select an option

Save bblum/cb545ba39f70bf6bea2f87ba8aaa37be to your computer and use it in GitHub Desktop.
just a simple fizzbuzz implementation such as you would write in a programming interview
#define p pthread_create(&i,0,f,
f(char*s){for(usleep(s[1]*999);sleep(76-*s),printf(s););}
main(i){p"Fizz");p"Buzz");for(i=1;i<102;sleep(2),printf("\n%d\33[3D",i++));}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment