Skip to content

Instantly share code, notes, and snippets.

View manafire's full-sized avatar

Brad Carson manafire

View GitHub Profile
@manafire
manafire / Compass.sublime-build
Created January 10, 2013 19:25
SublimeText2 Compass Build file with rbenv
{
"cmd": "cd '$project_path'; compass watch",
"working_dir": "$packages/Compass",
"selector": "source.sass, source.scss",
// "shell": "true",
"osx": {
// "watch" with SublimeOnSaveBuild package creates multiple ruby instances & memleaks, so we use "compile" instead
"cmd": ["/Users/bcarson/.rbenv/shims/compass", "compile", "$project_path"]
},
"windows":
@manafire
manafire / jquery.plugin-template.js
Created November 13, 2012 22:48 — forked from Air-Craft/jquery.plugin-template.js
jQuery Plugin Design Pattern/Template Improved!
// if (!window.L) { window.L = function () { console.log(arguments);} } // optional EZ quick logging for debugging
/**
* A modified (improved?) version of the jQuery plugin design pattern
* See http://docs.jquery.com/Plugins/Authoring (near the bottom) for details.
*
* ADVANTAGES OF EITHER FRAMEWORK:
* - Encapsulates additional plugin action methods without polluting the jQuery.fn namespace
* - Ensures ability to use '$' even in compat modes
*