FIND YOUR NEXT FEW LINES

Results for “Small algorithms & bit operations”

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

443 snippets foundClear filters
ReactGetting Started

Render a list with stable keys

Render a list with stable keys with a small React component and explicit browser behavior.

React✓ Tested
ReactLists & filtering

Render a semantic data table

Render a semantic data table with a small React component and explicit browser behavior.

React✓ Tested
ReactGetting Started

Render an optional notice

Render an optional notice with a small React component and explicit browser behavior.

React✓ Tested
ReactLists & filtering

Render nested groups with stable keys

Render nested groups with stable keys with a small React component and explicit browser behavior.

React✓ Tested
ReactGetting Started

Render nothing from an optional component

Render nothing from an optional component with a small React component and explicit browser behavior.

React✓ Tested
ReactAccessibility & events

Render untrusted-looking input as literal text

Render untrusted-looking input as literal text with a small React component and explicit browser behavior.

React✓ Tested
ReactGetting Started

Render your first React component

Render your first React component with a small React component and explicit browser behavior.

React✓ Tested
Bash ScriptsGetting Started

Repeat a command for several words

Bash Scripts: Repeat a command for several words with a small standalone Bash program.

Bash Scripts✓ Tested
Bash ScriptsGetting Started

Replace text with parameter expansion

Bash Scripts: Replace text with parameter expansion with a small standalone Bash program.

Bash Scripts✓ Tested
ReactAsync work & status

Report partial success from multiple actions

Report partial success from multiple actions with a small React component and explicit browser behavior.

React✓ Tested
JavaRecords & reliable control flow

Represent a finite set of states

Java: Use an enum to prevent arbitrary strings from representing application states.

Java✓ Tested
ReactEffects & lifecycle

Rerun an effect when its dependency changes

Rerun an effect when its dependency changes with a small React component and explicit browser behavior.

React✓ Tested