Skip to content

Instantly share code, notes, and snippets.

@jiffyclub
jiffyclub / stui.md
Last active January 1, 2016 21:19
Customizations for Sublime Text.
@jiffyclub
jiffyclub / gist:7492853
Created November 15, 2013 22:37
Command to get git history in chronological order with numbers in the fish shell. fish's history is in reverse-chronological order so I used pyp (https://code.google.com/p/pyp/) to reverse it. Also to replace my aliases with the standard git command name. (Had to do a few replacements because of the overlaps between e.g. 'co' and 'commit'.) I us…
history --search --prefix git | pyp "pp[::-1] | p.replace('co', 'checkout').replace('st', 'status').replace('checkoutmmit', 'commit').replace('statusatus', 'status').replace('checkoutnfig', 'config') | n, w[1] | p" | pbcopy
@jiffyclub
jiffyclub / regex_magic.ipynb
Created September 1, 2013 01:27
Simple regex magic demo.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / magic_test.ipynb
Created August 31, 2013 16:29
Example showing curly braces stripped from magic input.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / Preferences.sublime-settings
Last active December 21, 2015 21:59
Sublime Text Prefs
{
"auto_complete_commit_on_tab": true,
"caret_extra_bottom": 3,
"caret_extra_top": 3,
"color_scheme": "Packages/Theme - itg.flat/itg.dark.tmTheme",
"default_line_ending": "unix",
"drag_text": false,
"ensure_newline_at_eof_on_save": true,
"font_face": "Source Code Pro",
"font_size": 18,
@jiffyclub
jiffyclub / swc-vm.pp
Last active December 16, 2015 23:09
Puppet manifest for a VM suitable for Software Carpentry boot camps.
package { "dkms":
ensure => latest,
}
package { "chromium-browser":
ensure => latest,
}
package { "emacs":
ensure => latest,
@jiffyclub
jiffyclub / ToyChest.itermcolors
Last active December 16, 2015 20:59
iTerm2 color theme inspired by Toy Chest (http://toychesttheme.com/) and Flat UI (http://designmodo.github.io/Flat-UI/).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.31372550129890442</real>
<key>Green Component</key>
<real>0.24313725531101227</real>
@jiffyclub
jiffyclub / pygments_magic.ipynb
Created April 15, 2013 03:34
Example usage of the pygments_magic IPython extension for showing source code files with syntax highlighting in IPython.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / pygments.ipynb
Created April 14, 2013 15:12
An example of using Pygments to display a code file with syntax highlighting in the IPython Notebook.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / tmpnb
Created March 18, 2013 17:41
bash script for starting a notebook session in /tmp
#!/usr/bin/env bash
cd /tmp
ipython notebook