Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
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
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
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
| #!/usr/bin/env python | |
| import plistlib | |
| from shutil import copy | |
| import subprocess | |
| import os | |
| from tempfile import gettempdir | |
| import sys | |
| import atexit | |
| BOOKMARKS_PLIST = '~/Library/Safari/Bookmarks.plist' |
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
| '''Example of a custom ReST directive in Python docutils''' | |
| import docutils.core | |
| from docutils.nodes import TextElement, Inline | |
| from docutils.parsers.rst import Directive, directives | |
| from docutils.writers.html4css1 import Writer, HTMLTranslator | |
| class foo(Inline, TextElement): | |
| '''This node class is a no-op -- just a fun way to define some parameters. | |
| There are lots of base classes to choose from in `docutils.nodes`. |
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
| V=2.7 | |
| rm -rf build-env | |
| rm -rf vendor/setuptools-*.egg vendor/pip-*.egg | |
| virtualenv --python python$V --no-site-packages build-env | |
| mv build-env/lib/python$V/site-packages/ build-env/lib/python$V/orig-site-packages | |
| (cd build-env/lib/python$V && | |
| ln -s ../../../vendor site-packages && | |
| cd ../.. && mv bin bin-orig && | |
| ln -s ../vendor/bin bin && | |
| mv bin-orig/python* bin/ ) |
NewerOlder