Skip to content

Instantly share code, notes, and snippets.

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

/*! ******************************
Handlebars helpers
*******************************/
// debug helper
// usage: {{debug}} or {{debug someValue}}
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/)
Handlebars.registerHelper("debug", function(optionalValue) {
console.log("Current Context");
console.log("====================");
@dkanderson
dkanderson / CSS Reset
Last active December 30, 2020 14:53
CSS Reset, Adapted from: Normalize.css, HTML5 boilerplate, HTML5 Doctor Reset by Eric Meyer and Richard Clark, starkers reset by Elliot Jay Stocks Modified by Duane K. Anderson
html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
@dkanderson
dkanderson / wordpressresets
Created December 31, 2012 16:31
Wordpress Utility Scripts, Custom Resets for NextGen Gallery and Disqus Comment System
<?php
// Custom functions
// Clean up NextGen Gallery Scripts and Styles
if (!is_page('Showcase')) {
define('NGG_SKIP_LOAD_SCRIPTS',TRUE);
if (!is_admin()) {