Skip to content

Instantly share code, notes, and snippets.

@vpnry
vpnry / add_meditation_timer.md
Created May 30, 2026 16:33
Claude design meditation timer
image

upCal Meditation Timer — Full Implementation Prompt

Overview

Add a fully-featured meditation timer screen to the existing upCal Flutter app. The feature integrates seamlessly with the existing wheat/dark-blue visual identity and must work reliably with the screen off (background audio/foreground service).


@vpnry
vpnry / mm_tipitaka_translate.py
Created May 14, 2026 06:29
Translate MM Tipitaka translation into English using Deepseek v4 flash via NIM
"""
Tipitaka Myanmar → English Translation Pipeline
Uses DeepSeek via NVIDIA NIM API to translate HTML files.
Usage:
export NVIDIA_API_KEY="your_api_key_here"
python translate.py # translate all files
python translate.py --file 01_vinaya_01 # translate one file
python translate.py --resume # resume from last checkpoint
python translate.py --status # show progress status
@vpnry
vpnry / models.json
Created May 8, 2026 15:22
Using NVIDIA NIM free model with feynman. Remember to put NVIDIA_API_KEY in your .zshrc or similar. Here is the configure: home dir > .feynman > agent > models.json
{
"providers": {
"NVIDIA": {
"baseUrl": "https://integrate.api.nvidia.com/v1",
"apiKey": "NVIDIA_API_KEY",
"api": "openai-completions",
"models": [
{
"id": "moonshotai/kimi-k2.6"
},

Gemini CLI is opensource, thus we can configure it to use with a custom model.

Gemini CLI

Install:

npm install -g @google/gemini-cli

Uninstall:

npm uninstall -g @google/gemini-cli

#!/usr/bin/env python3
"""
s.id URL Shortener CLI
Usage: python sid.py <command> [options]
Env vars required:
SID_AUTH_ID - your X-Auth-Id
SID_AUTH_KEY - your X-Auth-Key
"""
#!/usr/bin/env python3
"""
Digital Pali Dictionary TXT Parser Test
https://github.com/digitalpalidictionary/dpd-db/releases/download/v0.3.20260402/dpd-txt.zip
Parses a structured dictionary text file into JSON with HTML-formatted content.
"""
import re
import json
@vpnry
vpnry / hn_digest.py
Created April 10, 2026 15:33
Openclaw - Get top 20 HN News and Send to your Telegram
import requests, time, html
from datetime import datetime
from zoneinfo import ZoneInfo
from urllib.parse import urlparse
TELEGRAM_TOKEN = "bot token"
CHAT_ID = "Enter Telegram ID"
HN = "https://hacker-news.firebaseio.com/v0"
@vpnry
vpnry / a-wotd-custom-word-list.md
Created October 20, 2025 07:20 — forked from jsomers/a-wotd-custom-word-list.md
How to use a custom word list with OS X's "Word of the Day" screensaver

OS X's "Word of the Day" screensaver is a great way to passively learn words:

But I've always thought that its word list kind of stunk—it was full of obscure words that I could never really see myself using. I'd prefer something like Norman Schur's 1000 Most Important Words. What if you could plug your own word list into the screensaver?

On a rather obscure comment thread, someone explained where you might find the word list that Apple uses to power the screensaver. It is at /System/Library/Graphics/Quartz\ Composer\ Plug-Ins/WOTD.plugin/Contents/Resources/NOAD_wotd_list.txt. The file looks like this:

m_en_us1282510	quinsy
@vpnry
vpnry / translate_prompt.txt
Last active February 24, 2025 03:34
Prompt and script to prepare chunk for AI translation
Your role is a professional translator specializing in Theravada Buddhist texts, with expertise in translating from Sinhala into English. Your translations prioritize accuracy in conveying both the literal meaning and the deeper spiritual context of the original text. You strive to maintain the nuances and technical terminology specific to Theravada Buddhism while making the text accessible to English readers.
Your translation will be used in a book print. When translating, adhere to these guidelines:
- 1. Provide only the accurate translation of the input text without additional explanations or commentary.
- 2. Preserve important Sinhala Pali term in Roman script or other terms in transliteration when an exact English equivalent doesn't exist.
- 3. Maintain the tone and style of the original text as much as possible.
- 4. Maintain the original markdown format and preserve paragraph breaks and segments
- 5. Use consistent terminology throughout the translation, especially for key Buddhist concepts.
- 6. If