This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches;say flushed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
// Include Our Plugins | |
var jshint = require('gulp-jshint'); | |
var compass = require('gulp-compass'); | |
var minifyCSS = require('gulp-minify-css'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var rev = require('gulp-rev'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var len = thing.length; | |
for( var i = len; i--; ) { | |
// stuff | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var thingsWeCanDo = { | |
doThisThing : function() { /* behavior */ }, | |
doThatThing : function() { /* behavior */ }, | |
doThisOtherThing : function() { /* behavior */ }, | |
default : function() { /* behavior */ } | |
}; | |
var doSomething = function(doWhat) { | |
var thingToDo = thingsWeCanDo.hasOwnProperty(doWhat) ? doWhat : "default" | |
thingsWeCanDo[thingToDo](); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function MyClass() { | |
this.myCallback = function() { | |
alert("MyClass.myCallback()"); | |
}; | |
this.startRequest = function() { | |
var myself = this; | |
GM_xmlhttpRequest({ | |
'method': 'GET', | |
'url': "http://www.google.com/", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global help.autocorrect 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.dock no-bouncing -bool TRUE | |
killall Dock |
NewerOlder