thecodex.expert · The Codex Family of Knowledge
Code Snippets

Code Snippets

Ready-to-run code snippets across 11 languages — idiomatic patterns, common tasks, copy and go.

11 languages 144 snippets Verified and idiomatic
🐍
Python
Comprehensions, decorators, async, dataclasses, generators, pathlib
14 snippets →
🌐
JavaScript
Array methods, async/await, destructuring, private fields, Proxy
14 snippets →
Java
Streams, Optional, records, sealed classes, virtual threads, CompletableFuture
13 snippets →
📘
TypeScript
Generics, utility types, discriminated unions, branded types, satisfies
13 snippets →
🐹
Go
Goroutines, channels, errors.Is/As, HTTP server, generics, context
13 snippets →
⚙️
Rust
Ownership, iterators, pattern matching, traits, Arc/Mutex, serde
13 snippets →
C++
Smart pointers, RAII, STL algorithms, lambdas, ranges, concepts
13 snippets →
🎯
Kotlin
Data classes, null safety, scope functions, coroutines, Flow, DSL builders
13 snippets →
🍎
Swift
Optionals, protocols, Codable, async/await, actors, property wrappers
13 snippets →
🗄️
SQL
JOINs, window functions, CTEs, aggregations, JSON, transactions
13 snippets →
🔧
C
Pointers, structs, malloc/free, strings, linked list, qsort, bit ops
12 snippets →

About these snippets

All snippets are verified, minimal, and idiomatic — they show the standard pattern for each task, not just any pattern that works. Each includes a comment explaining the key insight. Free, no account, no ads.