Results for “two”
Small, practical examples. Search by task or narrow things down below.
Reorder captured text in a replacement
TypeScript: Use numbered replacement groups to rearrange a known two-part name.
TypeScript✓ Tested
Replace text using captured regex groups
C++: Numbered replacement groups can rearrange a known two-part name.
C++✓ Tested
Return a value from a dialog form
HTML: A form with method dialog closes its containing dialog without a network submission.
HTML✓ Tested
Return typed data from an async function
Await a Promise and handle failures explicitly.
async✓ Tested
Rotate a sequence around a selected position
C++: rotate places the element at the middle iterator first while preserving the two segment orders.
C++✓ Tested
Run a Compose service as a numeric user
Docker / Compose: Run a Compose service as a numeric user in a small Compose file.
Docker / Compose✓ Tested
Run an event handler once
Use jQuery one for a handler that removes itself after the first event.
jQuery✓ Tested
See changed files
Show a concise working-tree status.
status✓ Tested
Select an inclusive range
Find rows with values between two endpoints.
BETWEEN✓ Tested
Set a form field value
Populate a labeled input with jQuery val.
jQuery✓ Tested
Set a service’s working directory
Docker / Compose: Set a service’s working directory in a small Compose file.
Docker / Compose✓ Tested
Set an element attribute
Update an HTML link using jQuery attr.
jQuery✓ Tested