Skip to content

Instantly share code, notes, and snippets.

View MatteoGauthier's full-sized avatar
🌴
Working on squale.agency 🍹

Mattèo Gauthier MatteoGauthier

🌴
Working on squale.agency 🍹
View GitHub Profile
import time
import random
from pynput.keyboard import Controller
keyboard = Controller() # Create the controller
def type_string_with_delay(string):
for character in string: # Loop over each character in the string
keyboard.type(character) # Type the character
delay = random.uniform(0, 2) # Generate a random number between 0 and 10
@MatteoGauthier
MatteoGauthier / package.json
Last active January 24, 2023 00:21
Modern package.json & tsconfig.json file [ESNEXT]
{
"version": "1.0.0",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"type": "module",
}
@MatteoGauthier
MatteoGauthier / useElementSize.tsx
Created November 2, 2022 13:18
React hook to listen to element size changes
import { useEffect, useMemo, useRef, useState } from 'react';
type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>;
const defaultState: ObserverRect = {
x: 0,
y: 0,
width: 0,
height: 0,
top: 0,
@MatteoGauthier
MatteoGauthier / README.md
Created June 2, 2022 07:42
Snippet - Stripe open in gmail button

Open in GMAIL button

Capture d’écran 2022-06-02 à 09 40 33

<a href={`https://mail.google.com/mail/u/{email}/#search/from:[email protected]`}>Open in Gmail</a>
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://vercel.com/</loc>
<lastmod>2019-09-11T15:11:59+00:00</lastmod>
@MatteoGauthier
MatteoGauthier / README.md
Last active November 2, 2022 13:22
Notion Dark Legacy - Custom style - Stylus - userstyles

Notion Dark Legacy

www notion so_matteogauthier_2bc7d76e5cc7469dba806a8e3d4a1cb3_v=b571030537874051abd43c9f36366f5b

/* ==UserStyle==
@name         Notion Dark Legacy
@version      20220223.10.26
@namespace    userstyles.world/user/matteogauthier
@MatteoGauthier
MatteoGauthier / tailwind-ui.config.js
Last active June 30, 2020 07:38
Tailwind Config + Tailwind UI extension
module.exports = {
purge: [],
target: "relaxed",
prefix: "",
important: false,
separator: ":",
theme: {
screens: {
sm: "640px",
md: "768px",
@MatteoGauthier
MatteoGauthier / stylize-details-summary.md
Last active November 24, 2019 18:21
Stylize details summary 🔥

Stylize details summary 🔥

details > div {
    padding-left: 0.5rem;
    margin-left: 0.2rem;
    margin-top: 0.2rem;
    border-left: solid #e7e7e7;
}

Marketing, entrepreneuriat bookmarks

Salut voici une liste des outils, sites web, des livres, des ressources à propos du Marketing et de l'entrepreneuriat. Le monde de l'entrepreneuriat m'intéresse, j'espère que cette liste vous feras découvrir de nouvelles choses. J'ai testé toutes les ressources si dessous, n'hésitez pas à en proposer d'autres 😉.

Thèmes : Business, Gestion de projet, Marketing, Communication

Blogs de qualités

a/
*.zip
.gitignore