Dist
Shared code snippets and projects — no execution, just shareable source.
- Projecttypescript+match-fetchtypescriptmatch-fetch
match-fetch consumer examples
How a TypeScript app uses @danrabydev/match-fetch: UserApi extends ApiBase, exhaustive FetchResult.match, and getJson. EXAMPLE_API_TOKEN is an optional env name; example.com is not a live API.
- Projecttypescript+matchtypescriptmatch
match consumer examples
How a TypeScript app uses @danrabydev/match ^0.3.1: exhaustive Status.match, one ApiResult namespace, peek-then-match, merge, and diagnostics on Error. No _ hatch.
- rustarc_share.rsrustconcurrencyarc
Arc for shared owned data
Share read-mostly state across threads with Arc — and mutate behind a Mutex when needed.
- kustoopen-nsgs.kqlazuresecuritykql
Azure Resource Graph — open NSGs
Find NSG rules that allow inbound from the internet on sensitive ports.
- rustcli.rsrustclapcli
Clap nested subcommands
Minimal clap derive CLI with a top-level command and nested subcommands.
- rustjson_writer.rsrustserdejson
Generic JSON file writer
Serialize any Serialize value to a pretty JSON file with create/truncate semantics.
- ruststatus.rsrusttui
ratatui status line stub
A minimal status-bar Line for a ratatui app — mode, path, and tag.
- tsretry.tstypescriptreliability
Retry with jittered backoff
Tiny async retry helper with exponential backoff and full jitter.
- rusttokio_match.rsrusttokioasync
Match a Tokio Result
Pattern for matching Ok/Err from an async Tokio call without losing the error context.