This file contains hidden or 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
/** | |
* Paste your Gruntfile (or important parts of it) here | |
* | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
watch: { | |
options: { | |
livereload: true |
This file contains hidden or 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
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' } | |
} |
This file contains hidden or 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
// 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; |
This file contains hidden or 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 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 ) |