Skip to content

Instantly share code, notes, and snippets.

View mzgoddard's full-sized avatar

Z Goddard mzgoddard

  • Bocoup
  • Boston, MA
View GitHub Profile
/**
* Paste your Gruntfile (or important parts of it) here
*
*/
module.exports = function(grunt) {
grunt.initConfig({
watch: {
options: {
livereload: true
module.exports = function(grunt) {
grunt.initConfig({
image_resize: {
options: { width: 16, height: 16, overwrite: true, upscale: true, crop: true },
your_target: { 'www/assets/icon.png':'www/assets/icon16.png' },
your_target_36: {
options: { width: 36, height: 36 },
files: { 'www/assets/icon.png':'www/assets/icon36.png' }
}
@mzgoddard
mzgoddard / has_tests.js
Created September 20, 2012 21:21 — forked from tJener/gist:3758415
commonjs/amd boilerplate
// shamlessly stolen from lodash
/*global define:false*/
;(function( window, undefined ) {
var freeExports = false;
// must be loaded first!
var has = window.has;
if ( typeof exports === 'object' ) {
freeExports = exports;
@mzgoddard
mzgoddard / abacus-api-notes.js
Created October 16, 2011 17:30 — forked from boazsender/abacus-api-notes.js
Abacus API Notes
var mainLoop = Abacus.timer({
callback: function( data ) {
data.delta // time since the last tick
data.ticks // zero indexed number of ticks
}
});
// Start the timer with an optional kill time in miliseconds
// if no miliseconds are passed in, it wil run FOR EV AR, until you pause it
mainLoop.start( 10000 )