Skip to content

Instantly share code, notes, and snippets.

View PiDelport's full-sized avatar
💜
𝝺 🦀️ 🐍️ ☕️ 🏳️‍🌈️ 🏳️‍⚧️

Pi Delport PiDelport

💜
𝝺 🦀️ 🐍️ ☕️ 🏳️‍🌈️ 🏳️‍⚧️
View GitHub Profile
@PiDelport
PiDelport / tox.ini
Created August 16, 2012 23:34
Baseline Tox config for supported versions of Python and Django.
# See http://tox.testrun.org/
#
# Supported Python 2.* environments: py{26,27,py}-dj{13,14,dev}
# Supported Python 3.* environments: py{31,32}-djdev
[tox]
minversion = 1.4
envlist = py27-dj14
# envlist =
# py26-dj13, py26-dj14, py26-djdev,
@PiDelport
PiDelport / templatelexer.py
Created August 8, 2012 20:29 — forked from eliben/templatelexer.py
Some takes on Eli Bendersky's implementation of Rob Pike's template lexer in Go.
from collections import namedtuple
TOK_TEXT = 'TOK_TEXT'
TOK_LEFT_META = 'TOK_LEFT_META'
TOK_RIGHT_META = 'TOK_RIGHT_META'
TOK_DUMMY = 'TOK_DUMMY'
# A token has