FIND YOUR NEXT FEW LINES

Results for “one”

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

590 snippets foundClear filters
CGetting Started

Run your first program

C: Start with a complete program that prints one line. Follow the run instructions below.

C✓ Tested
ReactRefs & DOM interaction

Scroll a referenced element into view

Scroll a referenced element into view with a small React component and explicit browser behavior.

React✓ Tested
jQueryTraversal & selection

Select an immediate parent

jQuery: parent moves exactly one level up the DOM.

jQuery✓ Tested
jQueryTraversal & selection

Select direct children without deeper descendants

jQuery: children limits matching to one level.

jQuery✓ Tested
ReactRefs & DOM interaction

Select the contents of an input

Select the contents of an input with a small React component and explicit browser behavior.

React✓ Tested
jQueryTraversal & selection

Select the immediately preceding sibling

jQuery: prev moves backward by one sibling.

jQuery✓ Tested
ReactContext & shared state

Separate state and dispatch contexts

Separate state and dispatch contexts with a small React component and explicit browser behavior.

React✓ Tested
AngularReactive forms

Set a control value programmatically

Set a control value programmatically with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
Arduino / CData & storage

Set and inspect a bit flag

Store several boolean states in one byte.

bitSet✓ Tested
Docker / ComposeLimits & process security

Set and inspect a fractional CPU limit

Docker / Compose: The cpus option records a limit in units of one billion NanoCPUs.

Docker / Compose✓ Tested
AngularServices & dependency injection

Share signal state through an injected service

Share signal state through an injected service with a standalone Angular component and explicit browser behavior.

Angular✓ Tested
ReactState & reducers

Share state between sibling controls

Share state between sibling controls with a small React component and explicit browser behavior.

React✓ Tested