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/sh | |
| echo "Purging pyc files and empty directories..." | |
| # Start from the repository root. | |
| cd ./$(git rev-parse --show-cdup) | |
| # Delete .pyc files and empty directories. | |
| find . -name "*.pyc" -delete > /dev/null 2>&1 & | |
| find . -type d -empty -delete > /dev/null 2>&1 & |
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
| First, install it from http://www.sublimetext.com/2 | |
| Next, install the package control extension from here: | |
| http://wbond.net/sublime_packages/package_control | |
| Installation instructions here: http://wbond.net/sublime_packages/package_control/installation | |
| Restart Sublime, then hit Shift+Apple+P and search for "Package Control: Install Package" |
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
| ln -s /usr/local/git/contrib/completion/git-completion.bash /usr/local/etc/bash_completion.d/git | |
| (unless of course /usr/local/etc/bash_completion.d/git already exists, in which case you shouldn't be reading this) |
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
| Function.prototype.notifier = (function () {"use strict"; | |
| // (C) WebReflection - Mit Style License | |
| function create(callback) { | |
| function notifier() { | |
| var args = [].slice.call(arguments), output; | |
| if (fire(notifier, "before", callback, this, args, null)) { | |
| try { | |
| output = callback.apply(this, args); | |
| } catch(e) { | |
| fire(notifier, "error", callback, this, args, 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
| class AbstractMixin(object): | |
| _classcache = {} | |
| @classmethod | |
| def contribute(cls): | |
| return {} | |
| @classmethod | |
| def construct(cls, *args, **kwargs): | |
| attrs = cls.contribute(*args, **kwargs) |
NewerOlder