FIND YOUR NEXT FEW LINES

Results for “one”

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

590 snippets foundClear filters
AngularGetting Started

Bind a text field in both directions

Bind a text field in both directions with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularReactive forms

Bind a typed nonnullable FormControl

Bind a typed nonnullable FormControl with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularGetting Started

Bind an accessibility attribute

Bind an accessibility attribute with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularGetting Started

Bind an element property

Bind an element property with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularTemplates & bindings

Bind an element’s title

Bind an element’s title with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
AngularTemplates & bindings

Bind textContent without interpreting markup

Bind textContent without interpreting markup with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
C++Filesystem operations

Calculate a lexical relative path

C++: lexically_relative compares path components without requiring the paths to exist.

C++✓ Tested
CNumeric parsing & arithmetic

Calculate a page count without an overflowing addition

C: Divide first and add one only when a nonzero remainder remains.

C✓ Tested
AngularGetting Started

Calculate a value in a template

Calculate a value in a template with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactGetting Started

Calculate a value inside JSX

Calculate a value inside JSX with a small React component and explicit browser behavior.

React✓ Tested
ReactState & reducers

Calculate derived state during rendering

Calculate derived state during rendering with a small React component and explicit browser behavior.

React✓ Tested
JavaStream transformations

Calculate several numeric stream statistics

Java: Use summaryStatistics to calculate count, sum, minimum, maximum, and average in one pass.

Java✓ Tested