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
Show hidden characters
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_delay": 50, | |
"auto_complete_selector": "source - comment", | |
"auto_complete_size_limit": 4194304, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", |
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
HOMEBREW=/usr/local/bin:/usr/local/sbin | |
export PATH=./bin:$HOMEBREW:$PATH:./node_modules/.bin | |
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi |
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
Meteor.subscribe( | |
'server_sessions', | |
amplify.store('session'), // Read from local storage / cookies | |
function() { | |
// The server returns only one record, so findOne will return that record | |
var serverSession = new Meteor.Collection('server_sessions').findOne(); | |
// Stores into client session all data contained in server session; | |
// supports reactivity when server changes the serverSession | |
Session.set('serverSession', serverSession); | |
// Stores the server session id into local storage / cookies |
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
var ClientRouter = Backbone.Router.extend({ | |
routes: { | |
'404': 'notfound', | |
'500': 'error', | |
'auth': 'auth', | |
'authCallback?oauth_token=:oauth_token&oauth_verifier=:oauth_verifier': 'authCallback', | |
'': 'defaultRoute' | |
}, | |
defaultRoute: function() { |