Results for “k”
Small, practical examples. Search by task or narrow things down below.
Send query parameters as an object
jQuery: jQuery encodes the data object into the request query.
jQuery✓ Tested
Separate a filename extension
Separate a filename extension using a complete Go program with explicit sample inputs.
Go✓ Tested
Separate state and dispatch contexts
Separate state and dispatch contexts with a small React component and explicit browser behavior.
React✓ Tested
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
Serialize a hashtable as JSON
Produce compact JSON for a small data object.
JSON✓ Tested
Serialize an object to JSON
Serialize a small anonymous C# object with System.Text.Json.
C#✓ Tested
Serialize successful controls for a URL-encoded request
jQuery: serialize includes named enabled controls and checked checkboxes.
jQuery✓ Tested
Set a boolean element property
jQuery: Learn how to set a boolean element property in a complete browser example.
jQuery✓ Tested
Set a control value programmatically
Set a control value programmatically with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
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
Set a form field value
Populate a labeled input with jQuery val.
jQuery✓ Tested
Set a text field’s value
jQuery: Learn how to set a text field’s value in a complete browser example.
jQuery✓ Tested