FIND YOUR NEXT FEW LINES

Results for “Maps & sets”

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

58 snippets foundClear filters
CSSGrid placement

Center a small item in a grid cell

CSS: Place-items sets both block-axis and inline-axis item alignment.

CSS✓ Tested
C++Tasks & synchronization

Check whether a future is ready without blocking

C++: A zero-duration wait reports timeout until the producer sets a value.

C++✓ Tested
Arduino / CBinary values & packets

Clear a flag without affecting neighboring bits

Arduino / C: bitClear resets only the selected bit.

Arduino / C✓ Tested
SQLChange & combine data

Combine results without duplicates

Merge compatible result sets with UNION.

UNION✓ Tested
CSSVisual treatment & accessibility

Control the size of a repeated background tile

CSS: Background-size sets the rendered dimensions of each repeated background image.

CSS✓ Tested
C++Tasks & synchronization

Deliver a result through a promise and future

C++: A promise sets a shared state and its future retrieves the value.

C++✓ Tested
Bash ScriptsParameter expansion

Extract a substring by offset and length

Bash Scripts: Bash substring offsets start at zero for an ordinary string.

Bash Scripts✓ Tested
jQueryAnimation completion

Fade an element out and hide it

jQuery: fadeOut sets display none after the opacity animation finishes.

jQuery✓ Tested
SQL ServerDates & text

Find the final day of a month

Use EOMONTH without manually calculating month length.

EOMONTH✓ Tested
PostgresDates & series

Generate a sequence of numbers

Create rows without a stored table.

generate_series✓ 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
Docker / ComposeExecution & file transfer

Override the process working directory

Docker / Compose: The workdir option sets the directory for the container command.

Docker / Compose✓ Tested