Skip to content

Instantly share code, notes, and snippets.

Avatar

Vadorequest Vadorequest

View GitHub Profile
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J24ZP4SZ59"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9ZNZWFC2D0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J24ZP4SZ59"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9ZNZWFC2D0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9ZNZWFC2D0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9ZNZWFC2D0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
View per-page-script.html
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9ZNZWFC2D0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
@Vadorequest
Vadorequest / ShowInView.tsx
Created Aug 23, 2021
Framer Motion "ShowInView" component - Displays children when visible in the viewport
View ShowInView.tsx
import {
domAnimation,
LazyMotion,
m as motion,
useAnimation,
} from 'framer-motion';
import { CustomDomComponent } from 'framer-motion/types/render/dom/motion-proxy';
import {
Transition,
Variant,
View 2020_01_11_18-43-39.json
{
"Video tracker":[
{
"id":"rec33UwV42IIInLVD",
"fields":{
"Video name":"When to Rent Gear and When to Buy Gear",
"Writer":[
"recaZvHtOExWvtyym"
],
"Platform":"Facebook",
@Vadorequest
Vadorequest / config_github_ssh_for_CDE_on_deployment.sh
Last active Dec 13, 2019
Config SSH private key on Zeit or Github Actions deployment server - Allows to fetch a private repository
View config_github_ssh_for_CDE_on_deployment.sh
#!/usr/bin/env bash
# This script is meant to be triggered on "package.json:scripts:preinstall"
# Once executed, it will allow fetching a private Github repository (the GITHUB_SSH_KEY_CDE is a RSA private key, that matches a Github "Deploy key")
# See https://spectrum.chat/zeit/now/deploy-with-private-github-dependency~67f5de5b-ad7f-4ff0-afbe-c1b717cca4db
echo "Resolving deployment's origin (Zeit, GitHub Actions, AWS CodeBuild), with HOME='$HOME'"
function configure_ssh() {
echo "Configuring environment with a custom ssh key to be able to fetch private dependencies..."