Skip to content

Instantly share code, notes, and snippets.

View albertogalca's full-sized avatar
🤟

Alberto Gallego albertogalca

🤟
View GitHub Profile
i
Sustainable Web Development with Ruby on Rails
#### Practical Tips for Building Web Applications that Last
David Bryant Copeland
@albertogalca
albertogalca / hexagon.tsx
Created August 7, 2025 11:50
Hexagonal animation for Wanda
'use client';
import { useEffect, useRef } from 'react';
import { gsap } from 'gsap';
export default function Hexagon() {
const hexagonRef = useRef<SVGSVGElement>(null);
const pathRef = useRef<SVGPathElement>(null);
const secondaryLinesRef = useRef<(SVGPathElement | null)[]>([]);
@albertogalca
albertogalca / indexnow.js
Last active October 21, 2025 08:32
indexnow
// IndexNow Sitemap Submitter (Node.js 18+)
// Uses native fetch - no dependencies needed!
const { parseStringPromise } = require("xml2js");
// Configuration
const SITEMAP_URL = "YOUR_SITEMAP_URL";
const YOUR_API_KEY = "YOUR_API_KEY"; // Replace with your actual key (get this key in https://www.bing.com/indexnow/getstarted)
const HOST = "YOUR_HOST_URL";
const INDEXNOW_API = "https://api.indexnow.org/indexnow";