This is now an actual repo:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim color file | |
" Converted from Textmate theme Twilight using Coloration v0.2.5 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install growl-py | |
try: | |
import Growl | |
i = Growl.Image.imageFromPath('media/img/amo2009/logo-mozilla.gif') | |
g = Growl.GrowlNotifier(applicationName='z', applicationIcon=i, | |
notifications=['Info']) | |
g.register() | |
g.notify('Info', 'ZAMBONI', None) | |
except Exception, e: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Apply a decorator to a whole urlconf instead of a single view function. | |
Usage:: | |
>>> from urlconf_decorator import decorate | |
>>> | |
>>> def dec(f): | |
... def wrapper(*args, **kw): | |
... print 'inside the decorator' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A monkeypatch for ``django.dispatch`` to send signals asynchronously. | |
Usage:: | |
>>> import async_signals | |
>>> async_signals.start_the_machine() | |
``django.dispatch.Signal.send`` is replaced with an asynchronous version that | |
adds the signal to a queue processed on a background thread. The synchronous |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fetch and prune all remotes. | |
for r in `git remote` | |
do | |
git remote prune $r | |
git fetch $r | |
done |
NewerOlder