These are mostly in Go and pretty scarily written and if you are doing the AOC I wouldn't look here, but this is what I hacked up. From AOC5, I'll try and capture the second spins in this repo where I do the solution in another language but thats more for my learnings.
If you aren't doing it, you should... https://adventofcode.com/