Skip to content

Instantly share code, notes, and snippets.

View Frenchcooc's full-sized avatar
☄️
We're hiring 🤘

Corentin Frenchcooc

☄️
We're hiring 🤘
View GitHub Profile
@Frenchcooc
Frenchcooc / mail-merge-gmail-script.js
Created April 7, 2021 20:58
This gist is part of a blog post about mail merge script for Gmail - https://mailmeteor.com/mail-merge-gmail/script
function sendEmails() {
const recipients = ["sally@mailmeteor.com", "neil@mailmeteor.com"];
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>

Time To First API Call - Stripe

Steps to reproduce:

  1. 00:00 - Sign in to Stripe

  2. 00:42 - Retrieve your API Key

  3. 01:01 - Prepare your Stripe API integration

mkdir ttfac-stripe

@mbleigh
mbleigh / README.md
Last active May 4, 2024 22:03
Firebase Hosting Fetch All Files

Fetch All Files from Firebase Hosting

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.

Running via NPX

npx https://gist.github.com/mbleigh/9c8680cf319ace2f506f57380da66e7d <site_name>
@aamnah
aamnah / list-articles-by-collection.liquid
Last active January 9, 2022 00:44 — forked from nternetinspired/output-articles-by-collection.liquid
Loop through Jekyll collections and list their posts
{% 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>
@runspired
runspired / form.html
Created May 23, 2016 13:46
How to turn off password and email/username autocomplete.
<!--
<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">
@JJediny
JJediny / gist:a466eed62cee30ad45e2
Created October 5, 2015 20:42
Jekyll Liquid Cheatsheet

There are two types of markup in Liquid: Output and Tag.

  • Output markup (which may resolve to text) is surrounded by
{{ matched pairs of curly brackets (ie, braces) }}
  • Tag markup (which cannot resolve to text) is surrounded by
@paulhhowells
paulhhowells / memory leaks .js
Last active May 25, 2022 08:33
avoid memory leaks with closures. google javascript style guide.
// 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