Skip to content

Instantly share code, notes, and snippets.

@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",
@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"]
}
// ----------------------------------------------------------
// 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 / 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",
@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 / CompassApp_Build.txt
Created September 2, 2013 10:33 — forked from ocean90/gist:1544377
HOWTO: Tutorial for compiling the Compass.app
Tutorial for compiling the Compass.app (http://compass.handlino.com/)
=====================================================================
Java installed?
java -version
Load jRuby (for example JRuby 1.6.5.1 Binary .zip)
http://jruby.org/download
Unzip jRuby to `/usr/local/`
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
/* http://pervasivecode.blogspot.com/2011/11/android-phonegap-active-css-pseudo.html */
/* this */
.my-button:active {
background-color: blue;
}
/* becomes */
my-button:active, .my-button.fake-active {
(*
* Finder Open iTerm Here - v1.0.2 - 4/14/2011
* http://benalman.com/
*
* Copyright (c) 2011 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*)
tell application "Finder"