Skip to content

Instantly share code, notes, and snippets.

@cemerson
cemerson / fetch
Created December 7, 2012 11:26 — forked from ariunbat/fetch
Fetch Settings for Sublime Text 2
{
"files":
{
"jquery": "http://code.jquery.com/jquery.js",
"jquery.min": "http://code.jquery.com/jquery.min.js",
"backbone": "http://documentcloud.github.com/backbone/backbone.js",
"backbone.min": "http://documentcloud.github.com/backbone/backbone-min.js",
"underscore": "http://documentcloud.github.com/underscore/underscore.js",
"underscore.min": "http://documentcloud.github.com/underscore/underscore-min.js",
"normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
@cemerson
cemerson / gist:4049509
Created November 10, 2012 02:01 — forked from shrwnsan/gist:2860805
SublimeText2: Fetch Settings
{
"files":
{
"jquery" : "http://code.jquery.com/jquery.js",
"jquery.min" : "http://code.jquery.com/jquery.min.js",
"jquery-cookie" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js",
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js",
"jquery-extra-selectors" : "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js",
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js",
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js",
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
@cemerson
cemerson / H5BPBS
Created October 12, 2012 09:43
REF: (ST2: Build Script) HTML5 Boilerplate
So I haven't seen anybody create a html5 boilerplate build system for sublime so here is a really simple one!
Just make sure ant is in your PATH vars and it should work based on if you keep your build folder in the root of your project.
{
"cmd" : ["ant", "-buildfile", "$file_path\\build\\build.xml"],
"selector": "source.html",
"windows": {
"cmd" : ["ant.bat", "-buildfile", "$file_path\\build\\build.xml"]
}
@cemerson
cemerson / Fetch.sublime-settings
Created October 12, 2012 09:40 — forked from dustinhorton/Fetch.sublime-settings
REF: Fetch settings for Sublime Text 2
{
"files":
{
"jquery" : "http://code.jquery.com/jquery.min.js",
"jquery-ui-effects" : "https://raw.github.com/jquery/jquery-ui/master/ui/jquery.effects.core.js",
"jquery-mobile-vmouse" : "https://raw.github.com/jquery/jquery-mobile/master/js/jquery.mobile.vmouse.js",
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js",
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js",
"jquery-url" : "https://raw.github.com/allmarkedup/jQuery-URL-Parser/master/jquery.url.js",
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js",