You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jsPDF helper function: Convert points to other units
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
To link to your payment page, you must generate a Checkout button HTML snippet for display on your site.
However, the default snippet only supports one Checkout button.
You cannot have several Checkout buttons for the same product on the same page.
This gist modifies Stripe's generated snippet to support several buttons.
Vue.js: Use Sentry.io without increasing initial bundle size
There's no questions about it: in the age of "fat" frontend clients, less bloat is better.
A useful technique is to split off large libraries into separate Webpack chunks so the they don't take up space in your main bundle, delaying the initial load of your webapp.
I like doing this with what I call the "installer pattern". Every split-out library gets its own "installer", an async function that loads the Webpack chunk, performs any initializations or configuration necessary, and then informs the relevant parts of your app that loading has completed.
Here's what that pattern looks like for installing the Sentry.io error reporting SDK:
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
Use serverless function to send low-volume emails without 3rd party mail services.
Sending email with serverless functions
You can deploy this function on any of the serverless platforms - AWS Lambda, Google Cloud Functions, Azure Functions, Netlify, Cloudflare Workers, etc.
Create a new function and paste in the following code.
You will need to add nodemailer to your package.json (npm i nodemailer), and follow your platform's instructions on bundling dependencies.
Obtain Gmail API credentials for your account. You will need clientID, clientSecret, and refreshToken. Follow this YouTube tutorial
Expose these credentials as the follwing environment variables:
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
AWS is notorious for it's incredibly complicated security model.
This guide will walk you through setting up a fully-featured build & upload script for your Lambda functions.