Good code. Useful context.
SnippetSearch is a focused library for the small programming tasks that come up every day.
One task at a time
Each page includes a short example, an explanation, expected output, and the details you need to run it. Choose a language or technology, browse a category, or search in your own words.
What “tested” means
Our collection contains 3,000 examples across 24 languages and technologies. We execute the exact published code in dedicated test containers with prepared inputs. Arduino examples run on a simulated Uno R3; database examples run against their named engines; Docker examples run in a separate test daemon. Tests compare output or check its structure and inspect resulting files where applicable. Each verified page shows the input setup, observed output, assertions, test time, container operating system, runtime, dependency versions, architecture, host kernel, container image ID, and code hash.
A verified badge requires a successful recorded test matching both the published code and expected output. These are example tests, not exhaustive tests or a security audit. Physical hardware, native Windows execution, and unlisted runtime versions are not covered by these records.
Examples using existing files describe those prerequisites on the page. Output from commands that inspect your system will differ. Testing demonstrates the documented example; it is not a guarantee for all environments or inputs.
Explore the library →