Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
grapher
Grapher is a Python class that generates a 2D graph object for displaying (x, y) data as text. (by dillweed)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Here's mine. Most of it I wrote in prior years, but refined this year. To account for problem-specific details, the functions are very generic and higher-order. It has a handful of well-known algorithms like A* and Floyd-Warshall, some handy data structures like circular buffers and intervals, and some type classes that are useful for parsing puzzle input.
Mine is here: https://github.com/bernikr/advent-of-code/blob/master/utils/aoc_utils.py
I made a Grapher class for this purpose. It generates an ascii 2d block of specified width and height with optional (x,y) offsets from the edge. https://github.com/dillweed/grapher
Here you go.