FIND YOUR NEXT FEW LINES

Results for “as”

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

2533 snippets foundClear filters
HTMLGetting Started

Separate prose into paragraphs

HTML: Learn how to separate prose into paragraphs in a complete browser example.

HTML✓ Tested
PythonIteration & sequences

Separate records into two lists

Python: Build two explicit partitions so callers can use both matching and rejected values.

Python✓ Tested
HTMLTables & list numbering

Separate table headings data and totals

HTML: Thead, tbody, and tfoot group rows according to their purpose.

HTML✓ Tested
jQueryDeferred work & queues

Sequence work on an element’s queue

jQuery: A queue callback calls next to allow the following callback to run.

jQuery✓ Tested
CBinary formats & structured parsing

Serialize a 16-bit integer in big-endian order

C: Explicit shifts make a byte format independent of the CPU’s native byte order.

C✓ Tested
PowerShellStructured formats & encodings

Serialize nested objects with an explicit depth

PowerShell: Select a sufficient depth so nested data is retained instead of converted into a descriptive string.

PowerShell✓ Tested
jQueryForm serialization & state

Serialize successful controls for a URL-encoded request

jQuery: serialize includes named enabled controls and checked checkboxes.

jQuery✓ Tested
jQueryGetting Started

Set a boolean element property

jQuery: Learn how to set a boolean element property in a complete browser example.

jQuery✓ Tested
Docker / ComposeCompose service options

Set a Compose service’s working directory

Docker / Compose: working_dir changes where the container command starts.

Docker / Compose✓ Tested
Docker / ComposeGetting Started

Set a default non-root image user

Docker / Compose: Set a default non-root image user with a complete introductory Dockerfile.

Docker / Compose✓ Tested
Linux CommandsStreams & byte tools

Set a file to a specific byte length

Linux Commands: Use truncate to shorten a known scratch file without replacing its inode.

Linux Commands✓ Tested
jQueryText & attributes

Set a form field value

Populate a labeled input with jQuery val.

jQuery✓ Tested