Matthew Hawthorn's repositories
cacheproperty
A subclass of python's builtin property class that removes boilerplate by implementing the _hidden_attribute pattern with a single decorator call. Also facilitates invalidation of the cached hidden attribute with a `@cacheproperty.invalidate` decorator on any other methods or properties in a class.
advent_of_code_2022
My solutions to the advent of code 2022 challenges
carefree-automated-language-models
Tool to build efficient vector space and n-gram language models from a stream of arbitrarily-structured documents using builtin python data types. Never store a token more than once- always use an ID. Count n-grams with tries, not tables. Make everything easily configurable. Build a language model CALMly- spend your time thinking about preprocessing choices, not the implementation.
CongressPolarization
A project to visualize polarization and alliances in the US Congress throughout its history. Analysis with Python + pandas & numpy, storage with Sqlite3, visualization with d3.js/HTML/CSS.
advent_of_code_2021
Artistically crafted solutions to the Advent of Code 2021 problems with a consistent interface
advent_of_code_2023
My solutions to the advent of code 2023 challenges
cookiecutter-hypermodern-python
Hypermodern Python Cookiecutter
Corpus-Explorer
A tool for modeling a corpus with an LDA topic model and visualizing/searching the results in a Shiny app
datatable-vs-dataframe
Functions for simple benchmarking of data.frame vs data.table operations on identical inputs, with utilities for graphing the output
math_genealogy_explorer
Eventual home of an interactive tool to explore the origin and evolution of mathematical ideas
mystics_and_simpletons
How One Mathematician Dutifully Fulfills the Stereotype of Being Woefully Socially Inept
PianoTuner
A Python package for optimizing piano tuning sequences from a set of target pitches
python-human-regex
More understandable alternatives for Python regular expressions
tuning_theory_talk
Paper wrapping up the content of a talk on the mathematics of tuning systems that I gave to the UofL Mathematics Club in 2014
typing_inspect
Runtime inspection utilities for Python typing module