🧘♂️
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
require 'digest/md5' | |
def gfm(text) | |
# Extract pre blocks | |
extractions = {} | |
text.gsub!(%r{<pre>.*?</pre>}m) do |match| | |
md5 = Digest::MD5.hexdigest(match) | |
extractions[md5] = match | |
"{gfm-extraction-#{md5}}" | |
end |
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
// 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 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 -*- | |
import os, sys, editor, shutil | |
from glob import glob | |
from scene import * | |
from time import time | |
from copy import deepcopy | |
from PIL import Image, ImageDraw, ImageFont | |
# https://gists.github.com/4034526 |
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
require 'formula' | |
class Screen <Formula | |
homepage 'http://www.gnu.org/software/screen/' | |
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz' | |
md5 '8506fd205028a96c741e4037de6e3c42' | |
# brew install --HEAD to get the latests, includes vertical split, mapped | |
# to C-a | | |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master' |
NewerOlder