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
// Unfollow in batch
async function unfollow() {
// Retrieve all followings
window.following = document.querySelectorAll("[role='button'] .css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0")
window.waitFor = function (ms) { return new Promise(function(resolve) { setTimeout(resolve, ms) } ) }
let counter = 0;
// Loop through followings
for (let i = 0; i < following.length; i++) {
@Frenchcooc
Frenchcooc / index.xml
Last active June 27, 2022 08:30 — forked from stammy/index.xml
RSS Feed Generator for Jekyll (feed.rss)
---
layout: null
title: "Feed title (e.g. John Doe's Blog)"
author: "Site name (e.g. John Doe)"
website: "http://example.org"
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
@Frenchcooc
Frenchcooc / Sparkline.vue
Last active May 31, 2023 16:29
Simple sparkline component for Vue.js
<template>
<svg class="sparkline" :width="width" :height="height" :stroke-width="stroke">
<path class="sparkline--line" :d="shape" fill="none"></path>
<path
class="sparkline--fill"
:d="[shape, fillEndPath].join(' ')"
stroke="none"
></path>
</svg>
</template>
@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>

Hello {{ firstname }},

I'm glad we could meet lately. As discussed, we are using a brand new mail merge solution called Mailmeteor.

Mailmeteor lets you send hundreds of personalized emails, right from Gmail.

I’d love to let you see some of the features to get your feedback. We want to ensure Mailmeteor would actually help you do your job better at {{ company }}.

Would you have 10-15 minutes free to chat? (I promise to keep the time!). Let me know the time that suits you best.

const axios = require("axios");
const authId = "aa4041d0-xxx-xxx-xxxxxx-xxxxxx";
const setupId = "45f63608-xxx-xxx-xxxxxx-xxxxxx";
const authUrl = `https://auth.bearer.sh/apis/typeform/auth/${authId}`;
const pizzlySecretKey = 'secure-secret-key'
const pizzlyAuthenticationHeader = 'Basic ' + Buffer.from(pizzlySecretKey + ':').toString('base64')
axios
@Frenchcooc
Frenchcooc / google.script.run.withRetry.js
Last active July 27, 2020 07:43
Handling retries client-side for Google Apps Script add-ons
// Handle retries when calling Apps Script functions,
// from the client-side (i.e. a browser).
//
// @usage:
// - google.script.run.withRetry().myFunction() // Will retry "myFunction" 2 times
// - google.script.run.withRetry(5).myFunction() // Will retry "myFunction" 5 times
//
// /!\ Known caveats. The method withUserObject(object) is not supported.
if (google && google.script && google.script.run) {