Skip to content

Instantly share code, notes, and snippets.

View shash7's full-sized avatar

Shashwat amin shash7

View GitHub Profile
@shash7
shash7 / timeloop
Created March 24, 2014 18:09
timeloop | A loop for delaying each iteration of a loop. Soooo meta
/*
* A loop for delaying each iteration of a loop
* How to use?
* var time = new TimeLoop(ms, iterations, callback);
* time(); // Executes the loop
*
* Also, the first parameter of the callback function is the counter of the loop
*/
var TimeLoop = function(ms, i, callback) {
@shash7
shash7 / mvc.js
Last active January 4, 2016 01:08
Component based framework for js apps.Dependent on jquery.
/*
*
* Custom MVC library
*
*
* Api reference :
* var mvc = new Mvc // options > debug : false
* var page = new mvc.Component({
* name : 'shash7', // some value