Skip to content

Instantly share code, notes, and snippets.

/*
On OS X, basic text manipulations (left, right, command+left, etc) make use of the system key bindings,
and don't need to be repeated here. Anything listed here will take precedence, however.
*/
[
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open" },
{ "keys": ["super+shift+t"], "command": "reopen_last_file" },
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
@tgvashworth
tgvashworth / gist:3060821
Created July 6, 2012 15:19
Tiny GitHub feed for your site
$ () ->
# Github Activity Stream
# Requires jQuery!
# To get going just edit this config to match your username and
# how many items you'd like to display.
# The container element should be a <ul> or <ol>
# Enjoy!
config =
@tgvashworth
tgvashworth / shim.html
Created February 28, 2012 08:58
navigator.getUserMedia shim - navigator.getMedia. Normalises & detects object & string option styles.
<!DOCTYPE html>
<video id="video" autoplay>
<source type="video/webm" src="http://miketaylr.com/misc/dontstop.webm">
</video>
<script src="userMedia.js"></script>
<script>
// Tell em how it is
if(!navigator.getUserMedia) {
console.log("Don't think you got it, sonny.");