Results for “ini”
Small, practical examples. Search by task or narrow things down below.
Read a file lazily through the .NET line iterator
PowerShell: ReadLines avoids creating one string containing the entire file.
PowerShell✓ Tested
Read a nested value safely
Combine optional chaining with nullish coalescing in JavaScript.
JavaScript✓ Tested
Read named columns from a table
SQL: Choose the columns needed and request a deterministic row order.
SQL✓ Tested
Read named columns from a table
SQL Server: Choose the columns needed and request a deterministic row order.
SQL Server✓ Tested
Read named columns from a table
Postgres: Choose the columns needed and request a deterministic row order.
Postgres✓ Tested
Read named columns from a table
SQLite: Choose the columns needed and request a deterministic row order.
SQLite✓ Tested
Remove an empty directory only
Linux Commands: Use rmdir so a directory containing files cannot be removed accidentally.
Linux Commands✓ Tested
Remove one network attachment
Docker / Compose: network disconnect removes the specified attachment while retaining the container.
Docker / Compose✓ Tested
Repeat a string a fixed number of times
JavaScript: String.repeat requires a nonnegative finite repetition count.
JavaScript✓ Tested
Repeat a string a fixed number of times
TypeScript: String.repeat requires a nonnegative finite repetition count.
TypeScript✓ Tested
Repeat an action a fixed number of times
Use a counter and delay for a simple finite sequence.
for loop✓ Tested
Represent a record with a dataclass
Python: Generate initialization and convert a typed record to a dictionary.
Python✓ Tested