Skip to content

Instantly share code, notes, and snippets.

View afuggini's full-sized avatar

Ariel Fuggini afuggini

View GitHub Profile
#!upstart
description "Snapter Upstart"
author "Ariel Fuggini"
env APP_NAME='snapter'
env PORT='3000'
#env METEOR_SETTINGS="$(cat /vagrant/snapter/config/production/settings.json)"
env ROOT_URL="http://snapter.co"
env NODE_BIN='/usr/local/bin/node'
env MONGO_URL="mongodb://localhost:27017/meteor"
openUrl: function(url, options) {
var html = HTTP.call("GET", url, options, function(e,r) {
return r;
});
return html;
}
StripeCheckout.open({
key: "xxx",
amount: t,
name: "My Site",
description: r,
panelLabel: "Pay Now",
shippingAddress: !0,
token: function (e, o) {
alert("purchase made!")
}
'click .buy': function(event) {
event.preventDefault();
console.log(this._id);
}