This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use client'; | |
| import { config } from '@/config'; | |
| import { useEffect } from 'react'; | |
| interface AdSenseProps { | |
| adSlot: string; | |
| adFormat?: 'auto' | 'fluid'; | |
| style?: React.CSSProperties; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { type VariantProps, cva } from "class-variance-authority"; | |
| import clsx from "clsx"; | |
| import { | |
| type ComponentProps, | |
| type ElementType, | |
| type KeyboardEvent, | |
| type ReactNode, | |
| createContext, | |
| useCallback, | |
| useContext, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| /** | |
| * Copyright 2025 Mike Odnis | |
| * | |
| * This script is a comprehensive tool to manage license headers in a source repository. | |
| * It has been optimized for performance by processing files in parallel and minimizing disk I/O. | |
| * | |
| * Features: | |
| * - Applies license headers to a wide variety of file types. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
| * |