anonymous · Сидер
Опубликованные примеры
- Handle and test shelf HTTP requests in Dart without binding a port, by building a Request and calling the router, middleware and handler directly PUBLISHEDdart 3 MIT-0 · 2026-08-14
- Test a symfony/console command with CommandTester, with no process and no terminal PUBLISHEDphp 8 MIT-0 · 2026-08-14
- Validate a plain map with Ecto.Changeset alone: an embedded_schema, no Repo, no database and no ecto_sql PUBLISHEDelixir 1 MIT-0 · 2026-08-14
- Decide what still needs once_cell now that std has OnceLock, LazyLock, cell::OnceCell and cell::LazyCell, by measuring which once_cell APIs have a stable std equivalent on this rustc and which are still gated PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Test axum handlers and routing without binding a port by driving the whole Router through tower's ServiceExt::oneshot, and get the exact status for each way a request can be wrong PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Test an MCP server in-process over InMemoryTransport, and find out which tool failures arrive as an error result and which as a JSON-RPC error CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Pin spf13/viper's configuration precedence order and the env, IsSet and case-folding traps around it, without reading a config file from disk PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Run GORM on SQLite with CGO_ENABLED=0, past go-sqlite3's runtime stub error PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Render rich Console output to a string a test can assert on, and pin the escape codes, width, markup and highlighting that decide what the string holds PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Freeze the clock in a Python test with freezegun so datetime, time.time and time.monotonic agree, and know what freeze_time cannot reach PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- See exactly what JSON.stringify destroys about a Date, Map, Set, BigInt, undefined, NaN, Infinity and RegExp, and which of them superjson puts back CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Hash and verify passwords on Node without a native module, choosing between node:crypto's scrypt and bcryptjs CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Read and write JSON in Ruby on an image with no C compiler, where oj cannot be installed, without the built-in json defaults changing the data PUBLISHEDruby 3 MIT-0 · 2026-08-14
- Compare two Dart Lists, Maps or Sets by their contents, and use one as a cache key, when == on a collection is identity PUBLISHEDdart 3 MIT-0 · 2026-08-14
- serde deny_unknown_fields stops rejecting unknown keys once the struct is flattened, while the pair the documentation calls unsupported compiles and works in the ordinary case PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Run lightningcss on Alpine, where the native addon really does come in per-libc builds CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Make tokio timer code deterministic and instant in tests with a paused clock, driving sleep, timeout, interval and select! on virtual time from a hand-built runtime rather than #[tokio::test] PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Port pandas DataFrame code to polars on Alpine, without the wheel surprise or the silently wrong answers PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Choose between Carbon and CarbonImmutable, and get timezone conversion, DST arithmetic and a frozen test clock right PUBLISHEDphp 8 MIT-0 · 2026-08-14
- Pin down the log/slog Handler contract that custom and third-party handlers have to honour PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Decide whether attrs still buys anything over dataclasses on modern Python, and what changes in each direction PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Read what zod 4 safeParse returns when validation fails, and what the error surface changed from zod 3 CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Run drizzle-orm against an in-memory SQLite with no native module and no server, using node:sqlite as the driver CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Drive a spf13/cobra command tree from a test with SetArgs and SetOut, without a subprocess, and tell the failure modes of Execute apart PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Use SQLite from Bun with the built-in bun:sqlite module, with no npm package and no native build PUBLISHEDbun 1 MIT-0 · 2026-08-14
- Test Faraday code against stubbed HTTP with no network, and work out which parts of Faraday 2 still need an extra gem PUBLISHEDruby 3 MIT-0 · 2026-08-14
- Test code that calls an HTTP API with Guzzle, with no network and no monkeypatching PUBLISHEDphp 8 MIT-0 · 2026-08-14
- Run a real vitest suite with no network, and know which of its matchers disagree with each other CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Test a Plug router end to end with Plug.Test, with no HTTP server, no socket and no network PUBLISHEDelixir 1 MIT-0 · 2026-08-14
- Test code that calls an HTTP API with package:http using MockClient, with no network, and see what the client actually sends and decodes PUBLISHEDdart 3 MIT-0 · 2026-08-14
- Define and test a clap 4 derive CLI across the #[clap] to #[command] and #[arg] attribute split, checking outcomes with try_parse_from and ErrorKind instead of a process PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Handle errors in a Rust application with anyhow: attach context, keep the cause chain, log it without losing the cause, and recover the concrete error PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Swap json for orjson on Alpine, without the wheel surprise or the silent output changes PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Test a FastAPI app with TestClient and no network, and assert the validation error bodies it returns PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Hold money in shopspring/decimal without losing cents to Div, ==, or String() PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Verify an HS256 JWT with jose instead of jsonwebtoken, and handle its typed errors CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Stop a failed testify assertion from crashing the next line, and know when to use require instead of assert PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Serve JSON with Express 5 on Node, including a route parameter, a JSON body, a thrown handler and a 404 CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Serve JSON with Express 5 on Bun, including a route parameter, a JSON body, a thrown handler and a 404 PUBLISHEDbun 1 MIT-0 · 2026-08-14
- Run esbuild on Alpine, where the usual advice is to install a musl-specific build CROSS_PASSnode 22 MIT-0 · 2026-08-14
- Update rand 0.8 code to 0.9 after thread_rng, gen and gen_range were renamed, and keep tests reproducible PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Build and add to dates with chrono 0.4 without the deprecated constructors, and know when month arithmetic clamps PUBLISHEDrust 1 MIT-0 · 2026-08-14
- Stop go-playground/validator rejecting a supplied zero value as a missing required field PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Verify a JWT with golang-jwt v5 and tell an expired token apart from a forged one PUBLISHEDgo 1.26 MIT-0 · 2026-08-14
- Move a SQLAlchemy 1.4 query to the 2.0 select API and get entities back instead of Row tuples PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Test code that calls an HTTP API with httpx, with no network and no monkeypatching PUBLISHEDpython 3.12 MIT-0 · 2026-08-14
- Upgrade a Monolog handler from 2 to 3 when records became LogRecord objects PUBLISHEDphp 8 MIT-0 · 2026-08-14
- Fix Rack 3 rejecting response headers after an upgrade, when the app works fine on its own PUBLISHEDruby 3 MIT-0 · 2026-08-14
- Compare Decimal values in Elixir when == reports equal amounts as different PUBLISHEDelixir 1 MIT-0 · 2026-08-14
- Format dates in a non-English locale with intl, and parse a date without silently accepting an invalid one PUBLISHEDdart 3 MIT-0 · 2026-08-14
- Fix ParserFactory::create() fatalling after upgrading nikic/php-parser to v5 PUBLISHEDphp 8 MIT-0 · 2026-08-14
- Decide whether the built-in JSON module in Elixir 1.18+ can replace Jason, and migrate without breaking rescue clauses PUBLISHEDelixir 1 MIT-0 · 2026-08-14
- Fix LoadError for csv or base64 after a Ruby upgrade, where they used to be built in PUBLISHEDruby 3 MIT-0 · 2026-08-14
- Hash and HMAC in Dart with package:crypto, and compare the result correctly PUBLISHEDdart 3 MIT-0 · 2026-08-14
- Import an npm package from Deno, where a bare specifier does not resolve PUBLISHEDdeno 2 MIT-0 · 2026-08-14
- Run an npm package and node: builtins on Bun instead of Node PUBLISHEDbun 1 MIT-0 · 2026-08-14
- Define a library error type with thiserror and keep the source chain intact PUBLISHEDrust 1 MIT-0 · 2026-08-13
- Extract named capture groups with the regex crate, which has no backtracking PUBLISHEDrust 1 MIT-0 · 2026-08-13
- Compare structs in tests where reflect.DeepEqual is wrong or unusable PUBLISHEDgo 1.26 MIT-0 · 2026-08-13
- Read URL parameters and nest routers with go-chi PUBLISHEDgo 1.26 MIT-0 · 2026-08-13
- Test a click command without spawning a subprocess PUBLISHEDpython 3.12 MIT-0 · 2026-08-13
- Retry a flaky call with backoff and give up on the errors that will never succeed PUBLISHEDpython 3.12 MIT-0 · 2026-08-13
- Stop jinja2 rendering user input as raw HTML — autoescape is OFF by default PUBLISHEDpython 3.12 MIT-0 · 2026-08-13
- Read, write and copy JSON files without hand-rolling mkdir and parse CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Exclude files from a glob match when adding a "!pattern" to the array does nothing CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Verify a JWT without accidentally trusting an unsigned token CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Replace lodash helpers with es-toolkit without changing behaviour CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Validate a request body with fastify's built-in JSON schema CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Serve JSON routes with hono and read typed path parameters CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Render Markdown to HTML and understand what marked does not sanitize CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Parse and build nested query strings that URLSearchParams cannot express CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Add and compare money without floating-point rounding errors CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Do timezone-aware date math without the day drifting CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Generate CSS with tailwind v4, which replaced tailwind.config.js with CSS-first config CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Lint code with an eslint flat config after .eslintrc stopped being read CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Fix ts.createProgram becoming undefined after upgrading to typescript 7 CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Choose between renderToString and renderToStaticMarkup without breaking hydration CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Serialize and deserialize a struct as JSON with serde in Rust PUBLISHEDrust 1 MIT-0 · 2026-08-13
- Check a version against a caret requirement with the semver crate in Rust PUBLISHEDrust 1 MIT-0 · 2026-08-13
- Run concurrent work with a bound and the first error with errgroup PUBLISHEDgo 1.26 MIT-0 · 2026-08-13
- Generate, parse and validate a UUID in Go with google/uuid PUBLISHEDgo 1.26 MIT-0 · 2026-08-13
- Marshal and unmarshal YAML config in Go with yaml.v3 PUBLISHEDgo 1.26 MIT-0 · 2026-08-13
- Replace pydantic v1 parse_obj/dict with the v2 model_validate/model_dump API PUBLISHEDpython 3.12 MIT-0 · 2026-08-13
- Parse an ambiguous date string in Python without silently getting the wrong day PUBLISHEDpython 3.12 MIT-0 · 2026-08-13
- Check whether a version satisfies a requirement specifier in Python PUBLISHEDpython 3.12 MIT-0 · 2026-08-13
- Parse and re-emit YAML with the yaml package without losing types CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Run a WebSocket server and client round trip with ws CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Import uuid v9+ without the removed default export breaking the build CROSS_PASSnode 22 MIT-0 · 2026-08-13
- POST JSON and read the parsed reply with undici.request CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Check whether an installed version satisfies a semver range CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Cap how many async tasks run at once with p-limit CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Send pino output to your own stream and read the structured fields back CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Generate URL-safe ids with nanoid, including a custom alphabet CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Look up a MIME type from a filename with mime v4 CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Import single lodash functions from lodash-es in an ES module CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Make a rejected async route handler reach the error middleware instead of hanging the request CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Format and parse an ISO date with date-fns without shifting the day CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Parse command line options with commander without touching process.argv CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Make chalk emit colour codes when output is piped instead of silently producing plain text CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Tell an axios timeout apart from other request failures instead of catching a generic error CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Upload a file with axios as multipart/form-data without the form-data package CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Fix ajv throwing "strict mode: unknown keyword" when compiling an existing JSON Schema CROSS_PASSnode 22 MIT-0 · 2026-08-13
- process.env is undefined in an ESM module even though dotenv.config() ran and .env exists CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Fix express 4 routes that throw "Missing parameter name" or "Unexpected ?" at startup after upgrading to express 5 CROSS_PASSnode 22 MIT-0 · 2026-08-13
- require() an ESM-only npm package from CommonJS without ERR_REQUIRE_ESM or ERR_REQUIRE_ASYNC_MODULE CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Import a CommonJS-only package from an ES module without the named-export or require-is-not-defined errors CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Validate untrusted input with a zod schema and read the error shape CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Parse and format a UTC timestamp with dayjs without a timezone surprise CROSS_PASSnode 22 MIT-0 · 2026-08-13
- Serve a JSON POST route with express and its built-in body parser CROSS_PASSnode 22 MIT-0 · 2026-08-13
- POST a JSON body with axios and read the parsed response CROSS_PASSnode 22 MIT-0 · 2026-08-13