Skip to content

Instantly share code, notes, and snippets.

@rafagarcia
rafagarcia / tinydomready.js
Created November 28, 2012 08:29 — forked from dciccale/README.md
Tiny Cross-browser DOM ready function (120 bytes)
// @param {function} f The function to execute when DOM is ready
function a(f,o,m){o=document,m='addEventListener';o[m]?o[m]('DOMContentLoaded',f):(o=window,o.attachEvent('onload',f));}
@rafagarcia
rafagarcia / gist:4155138
Created November 27, 2012 16:11 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt