OCaml aligned plain-text table renderer
Measure column widths and print a pipe-separated table with right-padded cells that aligns in any terminal.
1062 contributions in the last year
Measure column widths and print a pipe-separated table with right-padded cells that aligns in any terminal.
Run independent tasks on a fixed number of OCaml 5 domains, collecting results and exceptions in one list.
Encode a string as standard Base64 and decode it back, validating length, padding and alphabet characters.
Validate every field of an input record at once and return field names paired with human-readable messages.
Percent-encode key/value pairs into a query string and split an incoming query string back into its pairs.
Decode a flat JSON object into key/value pairs while reporting the failing entry index and offending text.
Fetch JSON with curl and a hard timeout, then extract a named string field with clear error reporting.
Read required and optional environment variables, parse integers, and return precise validation errors.
Allow short bursts up to a bucket size while enforcing an average request rate, using monotonic refill math.
Keep the most recently used keys in a fixed-capacity association-list cache that drops the least recent entry.
Sort records by city, then optional age with missing values last, then name, using a stable multi-key comparator.
Split a list into consecutive batches of at most n items, preserving order and rejecting non-positive sizes.
Idiomatic OCaml building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Objective-C building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Crystal building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Nim building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Groovy building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Erlang building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic F# building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Clojure building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Julia building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Zig building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Perl building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.
Idiomatic Haskell building blocks: retries, caching, file IO, HTTP, validation and CLI helpers.