Code implementation to execute code once on initial template render
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
#/bin/sh | |
export MONGO_URL=mongodb://localhost/testing123 | |
export MONGO_OPLOG_URL=mongodb://localhost/local | |
export ROOT_URL=http://dev.somewebsite.com | |
export DISABLE_WEBSOCKETS=true | |
mrt run --port 4005 |
- Includes Linux Homebrew, Node, Meteor and Meteorite.
To launch, copy and paste the code below into setup.sh
, run chmod 777 setup.sh
and then type ./setup.sh
.
Alternatively...
Just paste curl https://gist.githubusercontent.com/aaronthorp/9384266/raw/setup.sh | /bin/sh
in the terminal and watch the magic happen.
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
// Root of Meteor.js App | |
meteor_root = Npm.require('fs').realpathSync( process.cwd() + '/../' ); | |
// Private Assets Folder of Meteor.JS App | |
assets_root = meteor_root + "/server/assets/app/"; |
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
Windows Registry Editor Version 5.00 | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime] | |
@="Open Folder as &Sublime Project" | |
"Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0" | |
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command] |
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
Template.request_reply.events = { | |
'click #response_sendButton': function() { | |
sendRequestResponse(); | |
}, | |
'keypress #response_response': function(e,t) { | |
if (e.charCode === 13) | |
sendRequestResponse(); | |
} | |
}; |
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 Facebook(accessToken) { | |
this.fb = Meteor.require('fbgraph'); | |
this.accessToken = accessToken; | |
this.fb.setAccessToken(this.accessToken); | |
this.options = { | |
timeout: 3000, | |
pool: {maxSockets: Infinity}, | |
headers: {connection: "keep-alive"} | |
} | |
this.fb.setOptions(this.options); |
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
Router.onBeforeAction('loading'); | |
Router.map(function() { | |
this.route('project', { | |
path: '/:_domain/projects/:_project', | |
data: function() { | |
return {'name': this.params._domain}; | |
}, | |
waitOn: function(){ |