BlogHide Resteemstypenil (32)in python • 5 years agoHijacking Default Django 'Through' TablesA few times in the last year, I've run into the need to add some metadata to a Django many-to-many relationship. By default, there's no explicit model to add fields to, but - if you're working on an…typenil (32)in golang • 6 years agoGitHub OAuth2 in GoI've been playing around with Git repository analysis tools recently (my favorite of which is the now-defunct gitinspector ), tracking my contributions on a regular basis. These tools can only…typenil (32)in formatting • 6 years agoGit Hooks: Autoformat before commitAutoformatters can be great, keeping diffs small and a code base readable across teams and engineers. Black formatting has been enforced in Lobit builds since day one and I recently added it…typenil (32)in python • 6 years agosteemCreated with Sketch.How to automate Ghost/Medium cross-posting via ZapierOriginally published on my blog: With this blog, I'm eager to automate a lot of the tedium that comes with cross-posting to other platforms. Medium was first on the docket due to its popularity -…typenil (32)in python • 6 years agoSQLAlchemy + FactoryBoy: Passing arbitrary sessions to factoriesIn work projects in the past, my team would try to avoid dealing with the complexity of SQLAlchemy database sessions by making one global session that every module referenced. It made things easy…