Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael "Z" Goddard mzgoddard

View GitHub Profile
View jsbin.viro.js
/**
* Paste your Gruntfile (or important parts of it) here
*
*/
module.exports = function(grunt) {
grunt.initConfig({
watch: {
options: {
livereload: true
View gruntfile.js
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 Sep 20, 2012 — forked from tJener/gist:3758415
commonjs/amd boilerplate
View has_tests.js
// 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;
View abacus-api-notes.js
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 )
You can’t perform that action at this time.