Skip to content

Instantly share code, notes, and snippets.

@carlh
carlh / Default.sublime-commands
Created January 11, 2013 02:35
SublimeREPL config files for SML. Allows you to launch a functional REPL for SML that runs inside SublimeREPL. This assumes that you've installed SML at the default location. Dependencies: - SML (http://www.smlnj.org/) - SublimeREPL (https://github.com/wuub/SublimeREPL) - Language Definition (https://github.com/seanjames777/SML-Language-Definition
[
{
"caption": "SublimeREPL: SML",
"command": "run_existing_window_command", "args":
{
"id": "repl_sml",
"file": "config/SML/Main.sublime-menu"
}
}
]
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];