Results for “Form serialization & state”
Small, practical examples. Search by task or narrow things down below.
Replace a path extension
C#: Path.ChangeExtension transforms a path string without moving or creating a file.
C#✓ Tested
Replace all matching text
Normalize repeated whitespace with a regular expression.
regexp_replace✓ Tested
Replace text with sed
Replace all occurrences of the substring old on each line and print the transformed text without changing the input file.
sed✓ Tested
Require two filtering conditions
SQL: Combine category and quantity conditions with AND.
SQL✓ Tested
Require two filtering conditions
SQL Server: Combine category and quantity conditions with AND.
SQL Server✓ Tested
Require two filtering conditions
Postgres: Combine category and quantity conditions with AND.
Postgres✓ Tested
Require two filtering conditions
SQLite: Combine category and quantity conditions with AND.
SQLite✓ Tested
Return an inserted row
Read generated data directly from INSERT.
RETURNING✓ Tested
Return text from a shell function
Capture a function’s output with command substitution.
function✓ Tested
Roll back a trial update
Group a change in a transaction and undo it.
transaction✓ Tested
Rotate a rectangular box around its center
CSS: A ninety-degree transform swaps the visible bounding-box width and height.
CSS✓ Tested
Round a timestamp down to its month
Group dates by a calendar boundary.
date_trunc✓ Tested