Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
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
| // add this to <profile>/static/custom/custom.js to load vim keybindings: | |
| $.getScript("/static/components/codemirror/keymap/vim.js", function() { | |
| if (! IPython.Cell) return; | |
| IPython.Cell.options_default.cm_config.keyMap = "vim"; | |
| }); |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Builds epub book out of Paul Graham's essays: http://paulgraham.com/articles.html | |
| Author: Ola Sitarska <ola@sitarska.com> | |
| This script requires python-epub-library: http://code.google.com/p/python-epub-builder/ | |
| """ | |
| import re, ez_epub, urllib2, genshi |
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
| from IPython.frontend.qt.console.qtconsoleapp import IPythonQtConsoleApp | |
| class MyApp(IPythonQtConsoleApp): | |
| def init_config_files(self): | |
| # override the place to look for builtin default config files | |
| self.builtin_profile_dir = "custom" | |
| super(MyApp, self).init_config_files() | |
| def main(): |
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
| import os | |
| import shutil | |
| from IPython.core.profiledir import ProfileDir, ProfileDirError | |
| from IPython.utils.path import get_ipython_dir | |
| pjoin = os.path.join | |
| ipdir = get_ipython_dir() | |
| # ensure IPython dir exists in case of first run: |