FIND YOUR NEXT FEW LINES

Results for “code”

Small, practical examples. Search by task or narrow things down below.

3000 snippets foundClear filters
Docker / ComposeNetworks & volume metadata

List only volumes matching a label

Docker / Compose: A label filter avoids relying on broad name patterns.

Docker / Compose✓ Tested
GitMerging & replaying changes

List paths changed on a feature branch since its merge base

Git: A three-dot diff compares the branch tip with the common ancestor.

Git✓ Tested
GitGetting Started

List paths saved in the latest commit

Git: List paths saved in the latest commit inside the disposable repository created by the input setup.

Git✓ Tested
JavaFiles & paths

List regular files

List immediate regular files in sorted order and close the Java directory stream.

Java✓ Tested
C++Filesystem operations

List regular files recursively in sorted order

C++: Collect relative paths before sorting because directory iteration order is unspecified.

C++✓ Tested
GitTags & repository configuration

List release tags matching a pattern

Git: Use a tag pattern and version-aware sorting for release labels.

Git✓ Tested
GitRemotes & additional checkouts

List remote-tracking branches after a fetch

Git: Remote-tracking references describe the last fetched state rather than live remote state.

Git✓ Tested
Linux CommandsSystem information

List running processes

Display process IDs, parent process IDs, and command names for all visible processes.

process✓ Tested
GitMerging & replaying changes

List the paths with unresolved merge conflicts

Git: The U diff filter identifies unmerged entries without parsing human-readable status output.

Git✓ Tested
GitGetting Started

List tracked file paths

Git: List tracked file paths inside the disposable repository created by the input setup.

Git✓ Tested
SQLRelationships & missing data

List unordered pairs without duplicate reversals

SQL: Join using an increasing key comparison to omit self-pairs and reversed duplicates.

SQL✓ Tested
SQL ServerRelationships & missing data

List unordered pairs without duplicate reversals

SQL Server: Join using an increasing key comparison to omit self-pairs and reversed duplicates.

SQL Server✓ Tested