Skip to content

Instantly share code, notes, and snippets.

"""
Spike for template rendering.
$ export PYTHONPATH=/<path>/<to>/deed-api
"""
from contextlib import contextmanager
import datetime
import json
import os
@tgalv
tgalv / pythonpath.rst
Last active June 16, 2016 12:48
LR python path

Python Path

Motivation

A whistle-stop tour of the techniques for getting your Python code into a place where the interpreter can get to work on it followed by the implications for code structure and usability.

@tgalv
tgalv / friendly_token.py
Last active May 27, 2016 12:46
Token Spike
"""
Spike for the token creation and
associated probability calculation.
"""
import math
import random
import string
"""
1. Conveyancer must be alerted if more names are on the register than on the mortgage deed
2. All names on the register must be on the mortgage deed
3. There can be more names on the mortgage deed than on the register
4. Conveyancer does not need to be alerted that there are more names on mort