FIND YOUR NEXT FEW LINES

Results for “save file”

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

1970 snippets foundClear filters
TypeScriptArray restructuring

Keep both matching and rejected values

TypeScript: Use two explicit outputs when a caller needs both sides of a classification.

TypeScript✓ Tested
CStructures & function interfaces

Keep caller data unchanged by passing a structure by value

C: A value parameter is a copy of the original structure.

C✓ Tested
CStructures & function interfaces

Keep function state between calls

C: A static local variable retains its stored value for the lifetime of the process.

C✓ Tested
Bash ScriptsProcesses & environment

Keep loop state by avoiding a pipeline subshell

Bash Scripts: Redirect input into a while loop so updates to a counter remain in the current shell.

Bash Scripts✓ Tested
PythonMappings & sets

Keep only the most recent items

Python: Use a bounded deque to discard the oldest item as new values arrive.

Python✓ Tested
Docker / ComposeNetworks & volume metadata

Keep scratch data only for the container lifetime

Docker / Compose: Separate tmpfs mounts do not share data between container runs.

Docker / Compose✓ Tested
HTMLData & disclosure

Label a data table

Use a caption and scoped headers for an HTML data table.

HTML✓ Tested
Docker / ComposeNetworks & volume metadata

Label a volume with its purpose

Docker / Compose: Volume labels support explicit ownership and selection.

Docker / Compose✓ Tested
GitGetting Started

Label the current commit with a tag

Git: Label the current commit with a tag inside the disposable repository created by the input setup.

Git✓ Tested
CSSType & reading flow

Lay out a short label in a vertical writing mode

CSS: Writing-mode changes the direction in which lines and inline content are laid out.

CSS✓ Tested
CSSVisual treatment & accessibility

Leave room above a scrolled-to heading

CSS: Scroll-margin offsets scrollIntoView placement so a heading is not flush against the viewport edge.

CSS✓ Tested
HTMLGetting Started

Let a user choose a yes or no value

HTML: Learn how to let a user choose a yes or no value in a complete browser example.

HTML✓ Tested