Skip to content

Instantly share code, notes, and snippets.

@tundish
tundish / frisia.toml
Last active June 27, 2023 13:02
Features Required In Support of Incremental Authorship
# Features Required In Support of Incremental Authorship
#
# This is a TOML file. It contains structured data.
# See https://toml.io/en/
# Most authors cannot commit full time to writing.
# Nevertheless, due to the very powerful free tools for text editing and source control,
# it is possible over time to build up a meaningful corpus of well-written art.
@tundish
tundish / class_bridging.py
Created February 13, 2021 10:08
Mix in new behaviours to Python objects on the fly.
#!/bin/env python3
# encoding: utf-8
"""
If you have decided to model the behaviour of game characters
by using Python classes, you will find you need to modify those
behaviours at run-time.
Here is a simple technique which lets you mix in different
behaviours and then assign objects their new personalities.
@tundish
tundish / coffeecups.py
Last active August 21, 2018 11:52
Spike of a data cleanser
#!/usr/bin/env python
# encoding: utf-8
"""
This is an example of a data cleansing pipeline.
During your development of the pipeline, you register each new function
with a Processor class.
The Processor is responsible for running the cleaning functions in
@tundish
tundish / _vimrc
Last active November 6, 2022 11:23
set nomodeline
set ruler
set shiftwidth=4
set tabstop=4
set textwidth=120
set number
set backspace=2
set expandtab
set noeb vb t_vb=
set termguicolors