Skip to content

Instantly share code, notes, and snippets.

@blacksmoke26
blacksmoke26 / timezone-list.php
Created March 29, 2016 11:10
List of timezones (PHP)
<?php
$listOfTimeZones = [
'Africa'=> [
'Africa/Algiers'=>'Algeria (+01:00)',
'Africa/Gaborone'=>'Botswana (+02:00)',
'Africa/Douala'=>'Cameroon (+01:00)',
'Africa/Bangui'=>'Central African Republic (+01:00)',
'Africa/Ndjamena'=>'Chad (+01:00)',
'Africa/Kinshasa'=>'Democratic Republic of the Congo (+01:00)',
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 20, 2025 03:03
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under Discover -> Quests
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@swfsql
swfsql / mamba3_block.py
Created October 18, 2025 08:37
Mamba-3 block, written by grok-4 and based on https://openreview.net/pdf?id=HwCvaJOiCj
# Python implementation of the Mamba-3 block
#
# Key features:
#
# - The API allows providing the cache.
# - Implements the chunked selective scan algorithm explicitly, with loops where necessary.
# - Includes RMSNorm implementation without external dependencies.
# - Assumes ngroups=1 for simplicity, as in the official code, but supports general ngroups.
# - Incorporates Mamba-3 improvements:
# - Trapezoidal discretization: More expressive recurrence with beta and gamma terms.
@samuelcolvin
samuelcolvin / logfire_docs.json
Created October 24, 2024 12:33
Logfire docs JSON
[
{
"id": 0,
"parent": null,
"path": "roadmap.md",
"level": 1,
"title": "Roadmap",
"content": "Here is the roadmap for **Pydantic Logfire**. This is a living document, and it will be updated as we progress.\n\nIf you have any questions, or a feature request, **please join our [Slack][slack]**."
},
{
@badmotorfinger
badmotorfinger / dupfinder.ps1
Last active December 20, 2025 02:48
Use ReSharper command line tool dupFinder to produce a report of duplicated C# code
$reportFileName = 'dupfinder.html'
$dupFindLocation = 'C:\dev\tools\ReSharperCliTools\dupfinder.exe'
if (-not (Test-Path $dupFindLocation)) {
Write-Host "dupfinder.exe not found in path $dupFindLocation"
Write-Host "Download tools from https://www.jetbrains.com/help/resharper/2017.1/ReSharper_Command_Line_Tools.html"
exit
}
$xsl = '<?xml version="1.0" encoding="utf-8"?>
@joelklabo
joelklabo / ios-claude-setup-prompt.md
Created August 15, 2025 19:26
iOS Project Claude Code Setup Prompt - Complete setup instructions for Claude Code with XcodeBuildMCP

Complete iOS Project Claude Code Setup - Master Prompt

IMPORTANT: This comprehensive setup will transform any iOS project into a fully automated, context-aware, self-maintaining Claude Code environment. This prompt is designed specifically for Claude Code (claude.ai/code) users.


PHASE 0: Prerequisites & Environment Verification

0.1 Check Required Tools

Before starting, verify these tools are installed:

@c0m4r
c0m4r / radxa_rock5c_lite.md
Last active December 20, 2025 02:47
Radxa ROCK 5C Lite - all you need to know in one place
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 20, 2025 02:45
Conventional Commits Cheatsheet
@lotem
lotem / default.custom.yaml
Created July 9, 2012 12:23
自動識別西文及數字組成的用戶名
# default.custom.yaml
# 全局範圍識別輸入串爲 rime + 任意數字序列,以及形如 rimeime-1.2.3 的常用西文短語
# 也可將本組 patch 寫入 <輸入方案ID>.custom.yaml 使這組規則僅在一款輸入方案中有效
#
# 第一例,輸入 rime 之後,再輸入任意一個數字,則立即識別爲西文輸入
# 再加上 default.yaml 原有的 email 規則,識別包含 @ 字符的郵箱,於是可以一氣呵成 [email protected]
# 第二例,輸入到 rimeime 時,立即識別爲西文輸入,並可跟隨任意位數字及指定的符號
patch:
recognizer/patterns/rime123: "^rime[0-9]+$"