This file contains 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
/** | |
* jquery.purr.js | |
* Copyright (c) 2008 Net Perspective (net-perspective.com) | |
* Licensed under the MIT License (http://www.opensource.org/licenses/mit-license.php) | |
* | |
* @author R.A. Ray | |
* @projectDescription jQuery plugin for dynamically displaying unobtrusive messages in the browser. Mimics the behavior of the MacOS program "Growl." | |
* @version 0.1.0 | |
* | |
* @requires jquery.js (tested with 1.2.6) |
This file contains 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
import IPython.ipapi | |
from getpass import getpass | |
from netrc import netrc | |
from optparse import OptionParser | |
from google.appengine.ext.remote_api import remote_api_stub | |
from google.appengine.tools.appcfg import AppCfgApp, StatusUpdate | |
from google.appengine.tools.bulkloader import RequestManager |
This file contains 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 | |
target_ip=`gethostip -d $1` | |
function is_local() { | |
echo $1 | grep '\(10\.\|127\.\|172\.\)' | |
} | |
flag=`is_local "$target_ip"` | |
if [ -n "$flag" ]; then |
This file contains 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
PS1="$_OLD_VIRTUAL_PS1" | |
export PS1 | |
unset _OLD_VIRTUAL_PS1 | |
rehash |
This file contains 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/zsh | |
scratchpad="scratch$1" | |
if tmux has -t $scratchpad; then | |
tmux attach -t $scratchpad | |
else | |
tmux new -s $scratchpad | |
fi |
This file contains 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
for proj in ~/Projects/*/*(/); do | |
hash -d ${proj##*/}=${proj} | |
done |
This file contains 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
#compdef workon | |
_workon_envs () { | |
local expl devs | |
envs=( $(workon) ) | |
_wanted envs expl 'available envs' \ | |
compadd "$@" - "${(@)envs%%:*}" | |
} |
This file contains 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
from shove import Shove | |
class ShoveStore(Shove): | |
""" usage: Shove('shove://(shove://(sqlite://data.db file://data_files) memory://)', | |
'simple://', shove_params={'shove_params': {}}) | |
""" | |
def __init__(self, engine, **kw): | |
url = engine.partition('://')[2][1:-1] |