FIND YOUR NEXT FEW LINES

Results for “list files”

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

467 snippets foundClear filters
HTMLForms

Offer a selection list

Provide a labeled HTML select with a default option.

HTML✓ Tested
PythonIteration & sequences

Pair corresponding list items

Python: Zip two equally sized sequences into pairs; strict mode rejects mismatched lengths on Python 3.10 or later.

Python✓ Tested
Docker / ComposeCompose service options

Protect a Compose service’s root filesystem

Docker / Compose: read_only rejects writes to the image filesystem.

Docker / Compose✓ Tested
HTMLGetting Started

Provide a list of selectable options

HTML: Learn how to provide a list of selectable options in a complete browser example.

HTML✓ Tested
AngularGetting Started

Provide an @empty list state

Provide an @empty list state with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
GoFiles & paths

Read from an in-memory filesystem

Read from an in-memory filesystem using a complete Go program with explicit sample inputs.

Go✓ Tested
AngularLists & control flow

Remove a list item by identifier

Remove a list item by identifier with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
PythonCollections

Remove duplicates from a list

Remove repeated hashable values while preserving the order in which they first appeared.

list✓ Tested
C#Collections & data structures

Remove matching items from a mutable list

C#: List.RemoveAll returns how many items it removed.

C#✓ Tested
C++Filesystem operations

Rename a known file through filesystem

C++: filesystem::rename reports an error by exception when the operation fails.

C++✓ Tested
ReactPerformance & rendering

Render a bounded preview of a long list

Render a bounded preview of a long list with a small React component and explicit browser behavior.

React✓ Tested
AngularGetting Started

Render a list with @for and stable tracking

Render a list with @for and stable tracking with a standalone Angular component and explicit browser behavior.

Angular✓ Tested