Skip to content

Instantly share code, notes, and snippets.

@jaw187
jaw187 / nodechallenge.js
Created January 18, 2016 15:16
Node Challenge, make this work by changing use
var Instance = function (options) {
this.options = options;
};
Instance.prototype.use = function (fn) {
var self = this;
process.nextTick(() => {
fn.call(self, self.options);
})
return this;
@jaw187
jaw187 / yerloop.js
Last active January 25, 2017 19:02
for( var current_index = 0; current_index < 10; current_index++ ){
var photo_path = PVL.Viewer.getPhotoPath( photos[ current_index ] );
var loadedIntoQueue = function (i) {
return function ( texture ){
console.log( 'texture loaded in queue', i, new Date() );
}
};