Skip to content

Instantly share code, notes, and snippets.

@benshimmin
benshimmin / gist:4443000
Created January 3, 2013 12:03
Stop Chrome popping up those "Confirm form resubmission" prompts when resubmitting POST data
$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome -disable-prompt-on-repost &
@benshimmin
benshimmin / instructions.md
Created December 14, 2012 13:00
Creating a new Sublime build system to trigger Fabric to run a Grunt task on a Vagrant host to compress Sass files... (How many layers of indirection is that?!)
  • Add the below build file with Tools -> Build System -> New Build System...
  • Make sure you have Tools -> Build System -> Automatic ticked
  • Install this plugin: https://github.com/alexnj/SublimeOnSaveBuild
  • That should be it!
@heygambo
heygambo / 01 get.yeoman.io script
Created September 13, 2012 20:31
bash: 'yeoman' command not found
○ → curl -L get.yeoman.io | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 11625 100 11625 0 0 6714 0 0:00:01 0:00:01 --:--:-- 43867
Looks like you have the XCode CLI tools. Passed!
Installing on OS X.
You've got brew, nice work chap!
@benshimmin
benshimmin / gist:2488427
Created April 25, 2012 09:17
Backbone - determine whether a model's property has changed from its default
// Since Backbone.Model's hasChanged() function only works after "change" events...
Backbone.Model.prototype.hasDefaultChanged = function(prop) {
return this.defaults[prop] !== this.get(prop);
};
@mirisuzanne
mirisuzanne / reference.mkdn
Created August 22, 2011 23:34
Susy 0.9 Reference Documentation

Susy 0.9 Reference Documentation

See the official Susy site for 1.0 documentation.

Terms

  • Susy Grid: A grid that you build with Susy. You can have multiple on one page if you need.
  • Grid Element: Any HTML element that is aligned to a Susy Grid.
  • Container: The root element in a Susy Grid. Anything inside it is a potential Grid Element.