Skip to content

Instantly share code, notes, and snippets.

View brimonk's full-sized avatar
🖥️
Programming like it's 1971

Brian Chrzanowski brimonk

🖥️
Programming like it's 1971
View GitHub Profile
@brimonk
brimonk / fizzbuzz_machine_hardcoded.c
Created May 7, 2019 04:05
Fizz Buzz on State Machine with States Hardcoded
/*
* Brian Chrzanowski
* Mon May 06, 2019 23:41
*
* This was a meme. A friend of mine thought about how you could do fizz-buzz
* as a 15(ish) state machine.
*
* I think my thing is closer to a circular linked list with function pointers,
* but that's whatever.
*
@brimonk
brimonk / fizzbuzz_machine.c
Created May 7, 2019 03:51
Doing Fizz Buzz with a State Machine
/*
* Brian Chrzanowski
* Mon May 06, 2019 23:41
*
* This was a meme. A friend of mine thought about how you could do fizz-buzz
* as a 15(ish) state machine.
*
* I think my thing is closer to a circular linked list with function pointers,
* but that's whatever.
*/
@brimonk
brimonk / integral.c
Created July 14, 2018 20:57
Integral Experiment in C
/*
* Brian Chrzanowski
* Fri Jul 13, 2018 13:42
*
* perform integrals over any function that returns and takes a double
* compile : cc integral.c -lm
*/
#include <stdio.h>
#include <math.h>