Results for “name”
Small, practical examples. Search by task or narrow things down below.
Return multiple named values from a method
C#: Named value tuples give lightweight field names without a separate class.
C#✓ Tested
Separate a filename extension
Separate a filename extension using a complete Go program with explicit sample inputs.
Go✓ Tested
Set a container’s own hostname
Docker / Compose: hostname changes the name reported inside the container.
Docker / Compose✓ Tested
Set an example container hostname
Docker / Compose: Set an example container hostname using a locally available Ubuntu image.
Docker / Compose✓ Tested
Share data through a named volume
Keep a file across two short-lived containers.
volume✓ Tested
Split a line into named fields
Read a simple delimiter-separated line into variables.
read✓ Tested
Stage a tracked file rename
Git: Stage a tracked file rename inside the disposable repository created by the input setup.
Git✓ Tested
Start a named queue explicitly
jQuery: Named queues wait until dequeue starts them.
jQuery✓ Tested
Store a value in a named variable
Python: Give a value a descriptive name and print it.
Python✓ Tested
Store a value in a named variable
C#: Give a value a descriptive name and print it.
C#✓ Tested
Store a value in a named variable
Java: Give a value a descriptive name and print it.
Java✓ Tested
Store a value in a named variable
JavaScript: Give a value a descriptive name and print it.
JavaScript✓ Tested