Skip to content

Instantly share code, notes, and snippets.

@optilude
optilude / gist:1527606
Created December 28, 2011 11:20
Basic Python package in virtualenv
$ easy_install -U virtualenv
# Create a sandbox
$ virtualenv --no-site-packages myenv
$ cd myenv
# Install Paste Script
$ bin/pip install PasteScript
@optilude
optilude / buildout.cfg
Created August 11, 2011 19:57
Illustrate use of eggs
# Test buildout
# Put this file in a directory as buildout.cfg.
# In the same directory, run:
#
# $ wget "http://svn.zope.org/*checkout*/zc.buildout/trunk/bootstrap/bootstrap.py"
# $ python bootstrap.py
# $ bin/buildout
#
[buildout]
@optilude
optilude / Default (OS X).sublime-keymap - User
Created August 8, 2011 19:26
A version of the Sublime Text 2 plugin at http://www.sublimetext.com/forum/viewtopic.php?f=5&t=2260&start=0 that makes for TextMate-like clipboard history
[
{ "keys": ["super+x"], "command": "clipboard_history_cut" },
{ "keys": ["super+c"], "command": "clipboard_history_copy" },
{ "keys": ["super+v"], "command": "clipboard_history_paste" },
{ "keys": ["super+shift+v"], "command": "clipboard_history_previous_and_paste" },
{ "keys": ["super+pagedown"], "command": "clipboard_history_next" },
{ "keys": ["super+pageup"], "command": "clipboard_history_previous" },
{ "keys": ["super+alt+ctrl+v"], "command": "clipboard_history_choose_and_paste" }