Skip to content

Instantly share code, notes, and snippets.

View twitchy's full-sized avatar

Reeve Jolliffe twitchy

View GitHub Profile
@twitchy
twitchy / js-method-in-callback.js
Created June 6, 2014 05:24
Invoke method in from within a callback
function MyClass() {
this.myCallback = function() {
alert("MyClass.myCallback()");
};
this.startRequest = function() {
var myself = this;
GM_xmlhttpRequest({
'method': 'GET',
'url': "http://www.google.com/",
@twitchy
twitchy / grunt-useful-tasks
Created February 9, 2014 18:00
useful grunt tasks
https://github.com/jrcryer/grunt-pagespeed
https://npmjs.org/package/grunt-responsive-images
https://npmjs.org/package/grunt-modernizr
https://github.com/globaldev/grunt-montage
https://github.com/nicholasstephan/grunt-spritesheet
https://npmjs.org/package/grunt-autoshot
@twitchy
twitchy / git-autocorrect
Created February 9, 2014 16:41
git autocorrect
git config --global help.autocorrect 1
@twitchy
twitchy / grunt-build-control
Last active August 29, 2015 13:56
grunt-build-control
// GRUNT-BUILD-CONTROL
// https://npmjs.org/package/grunt-build-control
// http://curtisblackwell.com/blog/my-deploy-method-brings-most-of-the-boys-to-the-yard
//
// use grunt to auto push /dist to live, stage, whatever on build
//
- npm install grunt-build-control --save-dev
- // grunt.loadNpmTasks('grunt-build-control'); ( not needed with yeoman )
- configuration: