This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
function cons(x, y) { | |
return function(w) { return w(x, y) }; | |
}; | |
function car(z) { | |
return z(function(x, y) { return x }); | |
}; | |
function cdr(z) { | |
return z(function(x, y) { return y }); |
This is a full set of key bindings (as of Vimium v1.45); covering all Vimium functionality. I have tried to map all Vimium functionality to comparable Emacs functionality (whenever possible). In cases where there is no equivalent, those commands are prefixed by <c-g>
(indicating <c-g>
oogle Chrome; and because <c-g>
does not conflict with other Emacs shortcuts at all).
Commented Shortcuts: There are a few Emacs-style shortcuts that are simply not possible in Vimium. All of my shortcuts (including those which were not possible; i.e. where I used a decent alternative) have been commented below. This should help to clarify my rationale.
_Compatibility: All of these shortcuts were tested on Mac OS X (Mavericks). Please note that all of my shortcuts operate under the assumption that your Emacs Meta key is the ⌥
Alt/Option key. This really was my only choice, because the ⌘
key is already used in Chrome for shortcuts that c
(defvar helm-fzf-source | |
(helm-build-async-source "fzf" | |
:candidates-process 'helm-fzf--do-candidate-process | |
:nohighlight t | |
:requires-pattern 2 | |
:candidate-number-limit 9999)) | |
(defun helm-fzf--do-candidate-process () | |
(let* ((cmd-args `("fzf" "-x" "-f" ,helm-pattern)) | |
(proc (apply #'start-file-process "helm-fzf" nil cmd-args))) |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import re | |
import imaplib | |
import email | |
from email.utils import getaddresses | |
import datetime | |
import getpass | |
import argparse |
# download transitive dependencies to local directory | |
lein pom | |
mvn dependency:copy-dependencies | |
ls -la target/dependency/ |
from pyspark import SparkContext, SparkConf | |
import json | |
import argparse | |
def fn_to_doc(line): | |
try: | |
doc = {} | |
data = json.loads(line) | |
doc['data'] = data |
#!/usr/bin/env python | |
from pyspark import SparkContext, SparkConf | |
import urllib2 | |
import json | |
conf = SparkConf().setAppName("ES Search List") | |
sc = SparkContext(conf=conf) | |
url='localhost:9200' |
wget -q http://londo.ganneff.de/apt.key -O- | apt-key add - | |
echo "deb http://londo.ganneff.de wheezy main" > /etc/apt/sources.list.d/emacs.list | |
aptitude update | |
aptitude install emacs-snapshot |