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 _data = {} | |
if ((plot_id > 0) && (plot_id < 11)) { | |
plot_number = "plot_" + plot_id; | |
} | |
if ((street_id !== null) && (plot_number !== null) && (plot_id !== null)) { | |
adc_print("update plot " + plot_number); | |
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
{ | |
// Server authentication info | |
"servers": [ | |
{ | |
"host": "127.0.0.1", // No not this address. Address redacted to protect the innocent. | |
"username": "digilord", | |
// "password": "password" | |
// or pem file (ssh based authentication) | |
"pem": "~/.ssh/id_dsa" | |
} |
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 createThreeAmigos = function(dir, baseName) { | |
var _array = []; | |
var _extensions = ['html', 'less', 'coffee']; | |
for (i = 0; i < _extensions.length; i++) { | |
var _file = dir + '/' + baseName + '.' + _extensions[i]; | |
_array.push(_file); | |
} | |
return _array; | |
}; |
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
adminSub = Meteor.subscribe 'adminViews' | |
Router.map -> | |
@route 'admin', | |
path: '/admin' | |
layoutTemplate: 'adminLayoutTemplate' | |
action: -> | |
@wait adminSub | |
@render 'admin' | |
data: -> |
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
// Test this route with | |
// curl -F test=testing http://localhost:3000/stripeaccess/ | |
Router.route('stripeaccess',{ | |
path:'/stripeaccess', | |
where: 'server', | |
action: function(){ | |
var request = this.request; // From the client | |
var response = this.response; // Response to the client | |
// 1. receive the JSON from Stripe |
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 userInput='bla'; | |
var regex = ""; | |
var lookup = { | |
"a": "à" | |
} | |
var accentedCharacters = "àèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇßØøÅåÆæœ"; | |
function replaceLetterWithOrBlock(letter){ | |
var orBlock = letter; | |
var accentedLetter = lookup[letter]; |
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
server { | |
listen 80; | |
server_name www.example.com; | |
client_max_body_size 500M; | |
access_log /var/log/nginx/meteorapp.access.log; | |
error_log /var/log/nginx/meteorapp.error.log; | |
location / { | |
proxy_pass http://localhost:3000; |
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
Router.route('home', { | |
path: '/', | |
data: {title: 'My Title'} | |
}); | |
// when you navigate to "/one" automatically render the template named "One". | |
Router.route('/one'); | |
// when you navigate to "/two" automatically render the template named "Two". | |
Router.route('/two'); |
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
[digilord@Cassiopeia app[master*]]$ meteor | |
[[[[[ ~/projects/inservice/app ]]]]] | |
=> Started proxy. | |
=> Started MongoDB. | |
W20141013-10:31:00.173(-7)? (STDERR) | |
W20141013-10:31:00.229(-7)? (STDERR) /Users/digilord/.meteor/packages/meteor-tool/.1.0.33.nwimf8++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:173 | |
W20141013-10:31:00.229(-7)? (STDERR) throw(ex); | |
W20141013-10:31:00.229(-7)? (STDERR) ^ | |
W20141013-10:31:00.229(-7)? (STDERR) TypeError: Object #<Object> has no method 'describe' |
NewerOlder