Steps to reproduce:
mkdir ttfac-stripe
function sendEmails() { | |
const recipients = ["[email protected]", "[email protected]"]; | |
const template = { | |
"subject": "My mail merge script for Gmail", | |
"content": `Hi,<br><br> | |
I just wanted to show you how to send emails in bulk with my Gmail account!<br><br> | |
Take care,<br> |
This script fetches all of the files from the currently deployed version of a Firebase Hosting site. You must be signed in via the Firebase CLI and have "Site Viewer" permission on the site in question to be able to properly run the script.
npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
{% comment %} | |
Loops though every collection you defined in _config.yml and grabs the pages they contain; outputting titles. | |
{% endcomment %} | |
{% for collection in site.collections %} | |
{% assign name = collection.label %} | |
<h1>{{ name }}</h1> |
<!-- | |
<form autocomplete="off"> will turn off autocomplete for the form in most browsers | |
except for username/email/password fields | |
--> | |
<form autocomplete="off"> | |
<!-- fake fields are a workaround for chrome/opera autofill getting the wrong fields --> | |
<input id="username" style="display:none" type="text" name="fakeusernameremembered"> | |
<input id="password" style="display:none" type="password" name="fakepasswordremembered"> | |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
// from google javascript style guide: | |
// One thing to keep in mind, however, is that a closure keeps a pointer to its enclosing scope. As a | |
// result, attaching a closure to a DOM element can create a circular reference and thus, a memory leak. | |
// For example, in the following code: | |
// Leaky example | |
function foo (element, a, b) { | |
element.onclick = function() { | |
// uses a and b | |
// this func keeps a pointer to foo, its enclosing scope |