Advent of Code
Advent of Code is a code competition website that is publishes new puzzles on the first 25 days of December. One on each day. Each puzzle has two parts. The puzzles start easy and becomes hard progressively. I was introduced to this through my ex-employer (Spotify). I have solved problems in Java, Ruby, Erlang and Scala. I do not have all my problems in github, but I salvaged some: https://github.com/balaji/advent_of_code.
As of writing, I haven’t yet managed to solve all 25 puzzles in a year because I travel to India every single year during the 4th week of December and I will miss it in the aftermath. In 2021, things were a bit hectic in with my current employer (Stripe) and I couldn’t focus on solving puzzles every day.
Stats Viewer
Here is a little fun half a day project. As part of this blog post I wanted to show my progress on AoC through the years.
- I used this library: https://github.com/wimglenn/advent-of-code-data to collect the data.
- I set up a AWS Lambda function on python (because the AoC library was on python) to return my AoC stats with CORS support. Code: https://github.com/balaji/adventOfCodeLambda.
- The chart is done using Chart.js: code
The stats are fetched in real-time to produce this graph. Hopefully someday all the bars will be at 25 :)