Skip to content

Instantly share code, notes, and snippets.

@rockbot
rockbot / gist:4964712
Last active December 13, 2015 19:48 — forked from lucasfais/gist:1207002
Useful Shortcuts for Sublime Text

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
@rockbot
rockbot / add-even-class.js
Created September 28, 2012 14:59 — forked from iamdustan/add-even-class.js
the power of dom utilities and selector engines
// the power of dom utilities and selector engines
// $('table.projects tr:even').addClass('even-row');
var slice = Array.prototype.slice,
toArray = function (obj) {
return Array.prototype.slice.call(obj, 0)
}
var tables = toArray(document.querySelectorAll('table.projects'))