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
## installing gcloud SDK on Mac OS X or Linux machine | |
curl https://sdk.cloud.google.com | bash | |
## restarting shell | |
exec -l $SHELL | |
## configuring the gcloud environment |
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
/************************************************* | |
* SINGLETON PATTERN IMPLEMENTATION * | |
*************************************************/ | |
//since there are no classes in javascript, every object is technically a singleton | |
//if you don't inherit from it or copy from it. | |
var single = {}; | |
//Singleton Implementations | |
//Declaring as a Global Object...you are being judged! | |
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
/********************************************************** | |
* SESSION TIMEOUT IMPLEMENTATION FROM JAVASCRIPT * | |
* ********************************************************/ | |
function Session() {} | |
Session.prototype.init = function() { | |
console.log('inside Session.init()'); |
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 test = require('./test'); | |
function route(pathname){ | |
var data; | |
pathname = pathname.substring(1, pathname.length); | |
switch(pathname){ | |
case "somethingrandom" : | |
data = { |