Skip to content

Instantly share code, notes, and snippets.

@miohtama
miohtama / ordereddict-2.6.py
Created May 20, 2012 11:32
Python 2.6 compatible OrderedDict
# Python 2.6 compatible ordered dict
# NOTE: API is not 1:1, but for normal dict access of
# set member, iterate keys and values this is enough
# Add odict egg to your project http://pypi.python.org/pypi/odict/
try:
from collections import OrderedDict
except ImportError:
from odict import odict as OrderedDict
#!/bin/zsh
# Copyleft 2010 paradoxxxzero All wrongs reserved
# With contribution from James Ahlborn
# https://gist.github.com/752727
# Fork of https://gist.github.com/586698 by nicoulaj / dingram / roylzuo ...
# From http://www.zsh.org/mla/users/2010/msg00692.html
# Token types styles.
# See http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#SEC135