Skip to content

Instantly share code, notes, and snippets.

@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() );
}
};
// Load modules
// Declare internals
var internals = {};
module.exports.foo = internals.foo = function(args) {
// do awesome stuff
var CameraShare = function (cameraId, username, target) {
this.cameraId = cameraId;
this.fromName = username;
this.target = target;
this.branchUrl = function(cb) {
branchUrl = "http://www.google.com/"
cb(branchUrl);
function init() {
var pswp = new Pswp();
pswp.listen("gettingData", refreshSignedUrl(pswp));
};
function refreshSignedUrl(pswp) {
return function (index, item) {