Useful snippets I’ve collected. Some original, and some sourced.

Javascript - Create nicely formatted date and time strings

Javascript

Create nicely formatted date and time strings

Mailgun - Send an email to a user.

Mailgun

Send an email to a user.

Stripe  - Accept a payment.

Stripe

Accept a payment.