Skip to content

Instantly share code, notes, and snippets.

@l4r-s
l4r-s / confetti.tsx
Last active October 14, 2026 02:03
Next.js Confetti Component - Add falling confetti animation to your Next.js app, just like the background on https://confettisaas.com. Perfect for celebratory events or adding a fun, festive touch to your website.
"use client";
import Confetti from "react-confetti";
import { useState, useEffect } from "react";
export default function ConfettiComponent() {
const [dimensions, setDimensions] = useState({ width: 0, height: 0 });
const [isSafari, setIsSafari] = useState(false);
useEffect(() => {
/* =========================================================
TASK FORCE 141 x LOS VAQUEROS MILITARY GLASS THEME
========================================================= */
/* 1. FULLSCREEN MOBILE BACKGROUND */
html, body {
background-image: url("https://files.catbox.moe/o14tao.jpg") !important;
background-repeat: repeat-y !important; /* Tiles vertically down long mobile pages */
background-position: center top !important;

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi


Word Choice

"Quietly" and Other Magic Adverbs

@wilco42
wilco42 / bjorn_bluetooth.sh
Last active October 14, 2026 01:40
bjorn bluetooth tether setup
#!/bin/bash
# Author: infinition
# Version: 1.0
# Description: Script to manage Bluetooth PAN (Personal Area Network) on Raspberry Pi
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
@dsabarinathan
dsabarinathan / mAP.py
Created August 20, 2024 12:52
Mean Average Precision (mAP) is a common metric used to evaluate the performance of object detection models. It measures how well a model identifies objects and their locations within an image. mAP is calculated by averaging the Precision-Recall curve across different object classes. Precision measures how many of the predicted objects are corre…
import glob
import json
import os
import shutil
import operator
import sys
import argparse
import math
import numpy as np
@Voloshin-Sergei
Voloshin-Sergei / commit.md
Created November 3, 2020 13:10
Шпаргалка по оформлению коммитов

Требования к именам коммитов

  • Названия коммитов должны быть согласно гайдлайну
  • Должен использоваться present tense ("add feature" not "added feature")
  • Должен использоваться imperative mood ("move cursor to..." not "moves cursor to...")

Примеры имен коммитов

init: - используется для начала проекта/таска. Примеры:
  • init: start youtube-task
  • init: start mentor-dashboard task
@itachi-re
itachi-re / yt-dlp-guide-enhancements.md
Created June 12, 2026 08:11
Complete yt-dlp reference for power users. AV1, MKV, 1080p/4K, Opus audio, playlists, SponsorBlock, cookies, config files, and 25+ recipes.
"llama.cpp": {
"npm": "@ai-sdk/openai-compatible",
"name": "llama-server (local)",
"options": {
"baseURL": "http://127.0.0.1:8080/v1"
},
"models": {
"model-id-here": {
"name": "Model Name Here",
"limit": {
#---------------GitHub Pages + Namecheap Domain + SSL Cheat Sheet------------#
NOTE: You do NOT need to buy PositiveSSL from Namecheap.
GitHub Pages provides free SSL automatically via Let's Encrypt.
# Namecheap Domain Setup
Buy Domain
Go to namecheap.com, select and buy domain name.
Navigate to DNS Settings
Login to Namecheap → Username dropdown → Dashboard
@Validark
Validark / aho-corasick.lua
Created July 18, 2021 12:31
A clean implementation of the aho-corasick algorithm taking full advantage of Lua's __index metamethod.
-- We can re-use metatables where possible
local lookupCache = {
__index = function(self, i)
local v = { __index = i }
self[i] = v
return v
end
}
local function use_aho_corasick(automaton, str)