Skip to content

Instantly share code, notes, and snippets.

View krokhale's full-sized avatar
💭
I may be slow to respond.

Krishna Rokhale krokhale

💭
I may be slow to respond.
View GitHub Profile
@krokhale
krokhale / gist:6400482
Created August 31, 2013 20:35
dynamic modules.
waitSeconds: 30
urlArgs: new Date().getTime().toString()
paths:
jquery: "initializers/jquery_loader"
# app modules
communicationApp: "backbone/apps/communication_app/admin_layout"
setupWizardApp: "backbone/apps/setup_wizard_app/wizard"
modules:
/***************************************************
* Assuming you can't use priorities (e.g. they are already being used for something else)
* You can store the email addresses in an index and use that to match them to user ids
***************************************************/
var fb = new Firebase(URL);
/**
* Looks up a user id by email address and invokes callback with the id or null if not found
*/