Skip to content

Instantly share code, notes, and snippets.

View WomB0ComB0's full-sized avatar
⚔️
Veni, vidi, vici

Mike Odnis WomB0ComB0

⚔️
Veni, vidi, vici
View GitHub Profile
@WomB0ComB0
WomB0ComB0 / adsense.tsx
Created September 19, 2025 11:18
adsense - Enhanced with AI-generated documentation
'use client';
import { config } from '@/config';
import { useEffect } from 'react';
interface AdSenseProps {
adSlot: string;
adFormat?: 'auto' | 'fluid';
style?: React.CSSProperties;
}
@WomB0ComB0
WomB0ComB0 / google-maps.tsx
Created September 19, 2025 02:12
google-maps - Enhanced with AI-generated documentation
'use client';
/**
* @file google-map.tsx
* @fileoverview A comprehensive Google Maps component for displaying locations with clustering, filtering, and interactive markers.
* The component includes features like:
* - Marker clustering for better visualization of dense areas
* - Status-based filtering (Active, Inactive, Special locations)
* - Interactive info windows with location details
* - Custom map styling and restricted bounds
@WomB0ComB0
WomB0ComB0 / jmaven
Created September 17, 2025 16:56
jmaven - Enhanced with AI-generated documentation
#!/usr/bin/env bash
set -euo pipefail
# Defaults
NAME=""
GROUP_ID="com.example"
ARTIFACT_ID=""
PACKAGE=""
ARCH_GID="org.apache.maven.archetypes"
ARCH_AID="maven-archetype-quickstart"
@WomB0ComB0
WomB0ComB0 / gha
Created September 15, 2025 00:55
gha - Enhanced with AI-generated documentation
#!/bin/bash
# This script wraps 'gh auth switch' and updates git user.name and user.email.
# Function to set git user config
set_git_config() {
local name="$1"
local email="$2"
echo "Setting git config: name='$name', email='$email'"
git config --global user.name "$name"
@WomB0ComB0
WomB0ComB0 / gitssh
Created September 6, 2025 15:46
gitssh - Enhanced with AI-generated documentation
#!/bin/bash
# Git Platform SSH Setup Script
# This script sets up SSH keys and known hosts for GitHub, GitLab, and BitBucket
set -e # Exit on any error
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@WomB0ComB0
WomB0ComB0 / speculation-intersection.tsx
Created September 6, 2025 14:57
speculation-intersection - Enhanced with AI-generated documentation
import { useCallback, useEffect, useRef } from "react";
import { flushSync } from "react-dom";
import { app } from "~/constants";
import { Stringify } from "~/utils/helpers";
import { generateSchema } from "~/utils/schema";
/**
* Configuration type for preload/prefetch behavior
* @typedef {Object} PreloadConfig
* @property {string[]} prerenderPaths - Paths to prerender eagerly for instant navigation
@WomB0ComB0
WomB0ComB0 / accordion.tsx
Last active September 6, 2025 08:55
accordion - Enhanced with AI-generated documentation
import { type VariantProps, cva } from "class-variance-authority";
import clsx from "clsx";
import {
type ComponentProps,
type ElementType,
type KeyboardEvent,
type ReactNode,
createContext,
useCallback,
useContext,
@WomB0ComB0
WomB0ComB0 / twitch-alert.ts
Created September 4, 2025 17:03
twitch-alert - Enhanced with AI-generated documentation
import axios from 'axios';
import { TwitterApi } from 'twitter-api-v2';
import { BskyAgent } from '@atproto/api';
import * as fs from 'node:fs';
import * as path from 'node:path';
interface Config {
twitch: {
clientId: string;
clientSecret: string;
@WomB0ComB0
WomB0ComB0 / copyright.ts
Last active September 5, 2025 14:34
copyright.ts and related files - with AI-generated descriptions
@WomB0ComB0
WomB0ComB0 / file-case.ts
Last active August 23, 2025 12:47
file-case.ts and related files - with AI-generated descriptions
#!/usr/bin/env node
// -*- typescript -*-
/**
* Copyright 2025 Mike Odnis
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*