FIND YOUR NEXT FEW LINES

Results for “all”

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

1115 snippets foundClear filters
SQLiteSchema design & transactions

Expose a reusable filtered view

SQLite: A view stores a query definition rather than a snapshot of its rows.

SQLite✓ Tested
ReactCustom hooks

Expose immutable collection operations

Expose immutable collection operations with a small React component and explicit browser behavior.

React✓ Tested
C++Text validation & parsing

Extract a substring with an explicit count

C++: The second substr argument is a length rather than an ending index.

C++✓ Tested
PythonStrings & dates

Extract numbers from text

Find all runs of ASCII digits in a string and convert the matches to integers.

regex✓ Tested
ReactCustom hooks

Extract reusable toggle behavior

Extract reusable toggle behavior with a small React component and explicit browser behavior.

React✓ Tested
JavaText validation & formatting

Extract successive regex matches

Java: Use a Matcher loop to find all unsigned integer tokens in Java text.

Java✓ Tested
jQueryAnimation completion

Fade a hidden element into view

jQuery: fadeIn shows a hidden element and calls its completion handler.

jQuery✓ Tested
ReactLists & filtering

Filter a list by a search term

Filter a list by a search term with a small React component and explicit browser behavior.

React✓ Tested
CArray transformations

Filter an array in place with a write index

C: Only retained values advance the write position.

C✓ Tested
SQLReporting & grouped calculations

Filter rows before grouping

SQL: WHERE limits the rows contributing to the aggregate; it differs from filtering completed groups with HAVING.

SQL✓ Tested
SQL ServerReporting & grouped calculations

Filter rows before grouping

SQL Server: WHERE limits the rows contributing to the aggregate; it differs from filtering completed groups with HAVING.

SQL Server✓ Tested
PostgresReporting & grouped calculations

Filter rows before grouping

Postgres: WHERE limits the rows contributing to the aggregate; it differs from filtering completed groups with HAVING.

Postgres✓ Tested