Skip to content

Instantly share code, notes, and snippets.

@dmmulroy
dmmulroy / coding-standards-draft.md
Created June 18, 2026 22:39
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@OrderAndCh4oS
OrderAndCh4oS / stripe-test-cards-json.ts
Created July 18, 2020 08:32
Stripe Test Card Data
const randomInteger = (min: number, max: number) =>
Math.floor(Math.random() * (max - min + 1)) + min;
export const getFutureExpiryDate = () => {
const now = new Date();
now.setFullYear(now.getFullYear() + randomInteger(1, 5));
return {month: randomInteger(1, 12), year: now.getFullYear().toString().slice(2)};
}
export const getPastExpiryDate = () => {
@rmk40
rmk40 / opencode-prompt-construction.md
Last active June 18, 2026 23:48
OpenCode prompt construction: system prompt, tools, agents, and assembly pipeline

OpenCode Prompt Construction

This document explains how OpenCode assembles everything the LLM sees: system prompt, tool definitions, agent configuration, and instruction files. It focuses on what's dynamic and why.

All paths are relative to the repo root.


How the System Prompt is Built

Polymarket BTC 5-Minute Up/Down Trading Bot — Build Guide

What This Bot Does

This bot trades Polymarket's "BTC Up or Down" 5-minute binary markets. Every 5 minutes, Polymarket opens a market asking: "Will BTC be higher or lower than the opening price when this 5-minute window closes?" You buy "Up" or "Down" tokens at some price (e.g. $0.50–$0.95), and if you're right, each token pays out $1.00. If you're wrong, you lose your bet.

The bot uses technical analysis on real-time Binance BTC price data to predict the outcome, then places the trade on Polymarket right before the window closes — when we have the most information but (ideally) before the token price has fully priced in the outcome.


@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active June 18, 2026 23:24
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
@yovko
yovko / ohmyzsh.md
Last active June 18, 2026 23:18
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

@madhurimarawat
madhurimarawat / GATE-CSE-DS-Resources.md
Last active June 18, 2026 22:58
A collection of the best free GATE preparation resources for CSE & Data Science. Contributions are welcome!

📌 GATE Resources - CSE & Data Science

I’ve compiled all the resources that helped me in my GATE preparation, and I hope they help you too! 🚀