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
// Brian Chrzanowski
// 2021-09-16 01:56:12
//
// take a screenshot and upload it to my server
//
// This is 100% throw away code. I wouldn't want this to be installed on anyone else's computers
// becuase I don't fully understand the whole bitmap, screen device context, chicanery that's
// going on.
//
// INSTRUCTIONS
@brimonk
brimonk / more_meta_programming.c
Created November 30, 2021 06:47
A Small, Metaprogramming Example in C
// Brian Chrzanowski
// 2021-11-30 00:06:44
//
// This is just a small demonstration that with the help of the C Preprocessor, and some macros, we
// can approach some meta programming things that get compile-time checked by the compiler. It isn't
// as elegant as something like Jai, but in theory, you could execute something like this at the
// very start of the program.
//
// If C supported more things out of the box to facilitate metaprogramming, this could could get a
// lot nicer, but that's what it is.
@brimonk
brimonk / wordle.c
Created June 5, 2022 06:33
My Wordle Solver (Probably Buggy)
// Brian Chrzanowski
// 2022-06-05 02:04:34
//
// My Wordle Solver.
//
// I'd been meaning to write one of these for a while. Basically, we slurp up the entire wordlist,
// and we literally just throw away words if they don't match the Worlde word.
#include <stdio.h>
#include <stdlib.h>