This file contains 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
rootview: null, | |
initialize: function(){ | |
//build rootivew and render empty content | |
this.rootview = new RootView().render(); | |
this._setupManagers(); | |
this.on("start", this._onStart); | |
}, | |
_setupManagers: function(){ |
This file contains 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
//Controller and how it handles any route | |
var Router = require('../routers/base_router.js'); | |
var LoginView = require('../views/admin_login.js'); | |
var ContentView = require('../views/admin_content.js'); | |
var HeadView = require('../views/admin_header.js'); | |
module.exports = Marionette.Object.extend({ | |
rootview: null, | |
initialize: function(options){ | |
this.router = new Router({controller:this}); |
This file contains 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
var RSVP = require('rsvp'); | |
var jQuery = require('jquery'); | |
// Log uncaught errors (important) | |
RSVP.on('error', function (reason) { | |
console.error((reason && reason.stack) || reason || 'Error'); | |
}); | |
// Shim the browser window with ES6 Promise | |
window.Promise = RSVP.Promise; |
This file contains 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
//actual auth.js | |
/** | |
* module name: auth | |
* role: It answers the query; Is the User Logged In | |
* @param url: Endpoint to make request | |
* @param state: The predicate | |
*/ | |
module.exports = Backbone.Model.extend({ | |
This file contains 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
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.Arrays; | |
public class RedMart { | |
static class P{ |