Skip to content

Instantly share code, notes, and snippets.

@gaelgerard
gaelgerard / gist:f30a7b3aaa326ca839fce2433d2cdda0
Created March 26, 2025 16:11 — forked from scottwyden/gist:b050192198ca3aa02320fc9290ba23c8
How to Make a Link in Bio Page in WordPress
<!-- wp:heading {"textAlign":"center","level":1,"style":{"typography":{"fontSize":"60px"}}} -->
<h1 class="has-text-align-center" style="font-size:60px">Logo Goes Here</h1>
<!-- /wp:heading -->
<!-- wp:spacer {"height":50} -->
<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
<!-- wp:buttons -->
<div class="wp-block-buttons"><!-- wp:button {"backgroundColor":"cyan-bluish-gray","textColor":"black","width":100,"style":{"border":{"radius":5}}} -->
@gaelgerard
gaelgerard / app.js
Created February 20, 2025 16:31 — forked from cba85/app.js
IJVS030 - Recherche de communes françaises jQuery
$(document).ready(function () {
$("form").on("submit", function (e) {
e.preventDefault();
$(".error").hide();
$(".no-results").hide();
$("#results").hide();
//const name = $("#name").val();
let name = $("input[name='name']").val();
@gaelgerard
gaelgerard / woo-update-product-stock-qty.php
Created January 22, 2024 09:39 — forked from stuart-lambon/woo-update-product-stock-qty.php
Updates WooCommerce product stock quantity programmatically. $sku and $qty variables need to be filled.
<?php
$sku = 'ITEM001';
$qty = 1;
// Get product_id from SKU — returns null if not found
$product_id = wc_get_product_id_by_sku( $sku );
// Process if product found
if ( $product_id != null ) {
@gaelgerard
gaelgerard / connect_linkedin.js
Last active October 6, 2023 12:52 — forked from bertolo1988/connect_linkedin.js
Quickly your LinkedIn network
// 1. load https://www.linkedin.com/mynetwork/
// 2. make sure your LinkedIn is in English
// 3. paste this script on chrome dev tools at your own risk
async function moreConnectionsPlease() {
// maximum limit of Connect buttons clicked
const LIMIT = 500;
// wait in ms before each scroll
const SCROLL_TIMEOUT = 600;
// bulk scroll will scroll this amount of times