Skip to content

Instantly share code, notes, and snippets.

View djs070's full-sized avatar

David Smith djs070

  • Sydney, Australia
View GitHub Profile
@djs070
djs070 / config.json
Created November 17, 2014 04:10 — forked from anonymous/config.json
Bootstrap grid-only
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
npm install -g jade stylus
jade --watch --pretty --out 'build' index.jade
  1. Tools > New Plugin
  2. Paste code_folding.py
  3. Add key binding at Sublime Text 2 > Preferences > Key Bindings - User
  4. Restart sublime
// 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
@djs070
djs070 / gist:4157370
Created November 27, 2012 21:53 — forked from tvandervossen/gist:1231476
Mobile Safari viewport sizes on iOS 4.3 and 5
iPad
1024 × 690 In landscape on iOS 4.3
1024 × 672 In landscape on iOS 5
768 × 946 In portrait on iOS 4.3
768 × 928 In portrait on iOS 5
1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3
1024 × 644 Always showing bookmarks bar in landscape on iOS 5
768 × 916 Always showing bookmarks bar in portrait on iOS 4.3
@djs070
djs070 / 1.js
Created November 15, 2012 07:04 — forked from mxriverlynn/1.js
$(function(){...}) vs (function($){...})($)
(function($) {
// Backbone code in here
})(jQuery);