Skip to content

Instantly share code, notes, and snippets.

## My dev agency gets systemized
Notes:
FIRST: slowly go over all slides once. Including the speaker view!
One of my goals for the next quarter is systemizing my agency.
@bonface221
bonface221 / index.tsx
Created January 11, 2024 09:01
Framer motion animated counter up while component is in view in next js. For react remove use client and props
"use client";
import {
animate,
motion,
useInView,
useMotionValue,
useTransform,
} from "framer-motion";
import { useEffect, useRef } from "react";
// Add ChatGPT Menu
const onOpen = () => {
const ui = SpreadsheetApp.getUi();
ui.createMenu("ChatGPT")
.addItem("💾 Save Responses as Text", "saveAsText")
.addItem("ChatGPT API Sheet by Sarah Tamsin 💜", "openUrl")
.addToUi();
};
add_filter('cuw_offer_display_locations', function($locations) {
return array_merge($locations, [
'woocommerce_before_checkout_form' => esc_html__("Before checkout form", 'checkout-upsell-woocommerce'),
'woocommerce_after_checkout_form' => esc_html__("After checkout form", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_before_customer_details' => esc_html__("Before customer details", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_after_customer_details' => esc_html__("After customer details", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_billing' => esc_html__("Before Billing", 'checkout-upsell-woocommerce'),
'woocommerce_before_checkout_billing_form' => esc_html__("Before Billing fields", 'checkout-upsell-woocommerce'),
'woocommerce_after_checkout_billing_form' => esc_html__("After Billing fields", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_shipping' => esc_html__("Before Shipping", 'checkout-upsell-woocommer
@emmanuelnk
emmanuelnk / displayAwsAccountAlias.js
Last active June 19, 2025 17:53
GreaseMonkey script to show an AWS account alias in the top nav bar
// ==UserScript==
// @name DisplayAWSAccountAlias
// @version 1
// @grant none
// @match https://*.console.aws.amazon.com/*
// ==/UserScript==
// Replace with your account numbers and desired alias
// The key is the account number and the value is the alias to display
const accountAliases = {
@carlodaniele
carlodaniele / block.json
Last active December 14, 2024 11:23
An example Gutenberg block (not for production)
{
"apiVersion": 2,
"name": "my-affiliate-plugin/my-affiliate-block",
"version": "0.1.0",
"title": "Affiliate Block",
"category": "design",
"icon": "money",
"keywords": [ "kinsta", "affiliate", "money" ],
"description": "An example block for Kinsta readers",
"supports": {
@jorgejaramillo
jorgejaramillo / sitemap-base.xml
Last active June 19, 2023 22:15
Diferentes tipos de mapas del sitio.
<!--Sitemap base-->
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://jorgejaramillo.com/</loc>
<lastmod>2020-10-08</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
</urlset>
@JamieMason
JamieMason / delete-whatsapp-messages.js
Last active June 1, 2024 23:23
Bulk Delete every WhatsApp Chat Message
// Delete every Chat in WhatsApp, by Jamie Mason (https://twitter.com/fold_left)
// https://gist.github.com/JamieMason/f8992ebf95423244b730b2c393c321ef
//
// 1. Go to https://web.whatsapp.com/ and sign in.
// 2. Archive any messages you don't want deleting, you can unarchive them after.
// 3. Open the Developer Console. (COMMAND+ALT+I on Mac)
// 4. Paste this into the Developer Console and run it.
// 5. If it gets stuck, scroll up and down in the list of chats.
// 6. Refresh the page and run again if you have any problems.
// 7. This Script does not Exit Groups or clear messages in them.
@bagerathan
bagerathan / woo-events.js
Last active August 7, 2025 18:49
[Woocommerce Javascript events] #woo
//Woocommerce Checkout JS events
$( document.body ).trigger( 'init_checkout' );
$( document.body ).trigger( 'payment_method_selected' );
$( document.body ).trigger( 'update_checkout' );
$( document.body ).trigger( 'updated_checkout' );
$( document.body ).trigger( 'checkout_error' );
//Woocommerce cart page JS events
$( document.body ).trigger( 'wc_cart_emptied' );
$( document.body ).trigger( 'update_checkout' );