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
initialize: function() { | |
this._fdb = new Firebase('http://gamma.firebase.com/opencountmadison/'); | |
this._resources = this._fdb.child('resources'); | |
this._bindEvents(); | |
this._bindDataEvents(); | |
}, | |
// Bind interface events | |
_bindEvents: function() { | |
var self = this; |
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
(function($) { | |
$.widget('mobile.tabbar', $.mobile.navbar, { | |
} | |
})(jQuery); |
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
(function($) { | |
$.widget('mobile.tabbar', $.mobile.navbar, { | |
_create: function() { | |
$.mobile.navbar.prototype._create.call(this); | |
} | |
}); | |
})(jQuery) |
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
(function($) { | |
$.widget('mobile.tabbar', $.mobile.navbar, { | |
_create: function() { | |
$.mobile.navbar.prototype._create.call(this); | |
// ... | |
} | |
}); | |
$(document).bind('pagecreate create', function(e) { |
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
(function($) { | |
$.widget('mobile.tabbar', $.mobile.navbar, { | |
_create: function() { | |
// Set the theme before we call the prototype, which will | |
// ensure buttonMarkup() correctly grabs the inheritied theme. | |
// We default to the "a" swatch if none is found | |
var theme = this.element.jqmData('theme') || "a"; | |
this.element.addClass('ui-footer ui-footer-fixed ui-bar-' + theme); | |
// Call the NavBar _create prototype |
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
$(":jqmData(role='page')").live('pageshow', function(e) { | |
// Grab the id of the page that's showing, and select it on the Tab Bar on the page | |
var tabBar, id = $(e.target).attr('id'); | |
tabBar = $.mobile.activePage.find(':jqmData(role="tabbar")'); | |
if(tabBar.length) { | |
tabBar.tabbar('setActive', id); | |
} | |
}); |
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
class BaseDriveHandler(w2.RequestHandler): | |
... | |
def StoreUserIdInSession(self, userid): | |
session = sessions.LilCookies(self, SESSION_SECRET) | |
session.set_secure_cookie(name='userid', value=userid) | |
def GetUserIdFromSession(self): | |
session = sessions.LilCookies(self, SESSION_SECRET) |
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
{ | |
"name": "Codiqa Prototypes", | |
"description": "Rapid Mobile Prototyping - Saves directly to Google Drive!", | |
"version": "1.3", | |
"container": "GOOGLE_DRIVE", | |
"api_console_project_id" : "CONSOLE_PROJECT_ID", | |
"intents": { | |
"http://drive.google.com/intents/opendrivedoc": [ { | |
"disposition": "window", | |
"href": "http://codiqadrive.appspot.com", |
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
localDrive.rm({ | |
root: '/', | |
flags: 'rf' | |
}); |
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
localDrive.rm | |
root: '/' | |
flags: 'rf' |