The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
Creating a USD charge on a GBP account:
$ curl https://api.stripe.com/v1/charges \
-u REDACTED: \
-d amount=400 \
-d currency=usd \
-d card[number]=4242424242424242 \
-d card[exp_month]=04 \
-d card[exp_year]=16 \
-d card[cvv]=390 \
require "open-uri" | |
Prawn::Document.generate("remote_images.pdf") do | |
image open("http://prawn.majesticseacreature.com/media/prawn_logo.png") | |
end |
Strongly opinionated set of guides to quickly setup OS X Mavericks for web development. By default OS X hides stuff that normal people don't need to see. These settings are better defaults for developers.
I don't want: any sounds, annoying confirmation dialogs, hidden extensions, superflous animations, unnecessary things running like Dashboard, Notification center or Dock(Alfred/spotlight works better for me).
These are my opinions. Read this document through and pick up the good parts to your preferences.
.filter("timeago", function () { | |
//time: the time | |
//local: compared to what time? default: now | |
//raw: wheter you want in a format of "5 minutes ago", or "5 minutes" | |
return function (time, local, raw) { | |
if (!time) return "never"; | |
if (!local) { | |
(local = Date.now()) | |
} |
module.exports = { | |
get: function (req, res) { | |
res.sendfile(req.path.substr(1)); | |
}, | |
_config: { | |
rest: false, | |
shortcuts: false | |
} | |
}; |