Skip to content

Instantly share code, notes, and snippets.

View trent's full-sized avatar

Trent Jurewicz trent

View GitHub Profile
@MatthewEppelsheimer
MatthewEppelsheimer / hack.sh
Created March 31, 2012 23:00 — forked from erikh/hack.sh
OSX Settings
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2269385/a714e0e69ba99936f914ade0083709dcca6f8438/hack.sh | sh
#
@dcramer
dcramer / track_data.py
Created December 6, 2010 19:15
Tracking changes on properties in Django
from django.db.models.signals import post_init
def track_data(*fields):
"""
Tracks property changes on a model instance.
The changed list of properties is refreshed on model initialization
and save.
>>> @track_data('name')