FIND YOUR NEXT FEW LINES

Results for “open”

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

308 snippets foundClear filters
jQueryText & attributes

Set a form field value

Populate a labeled input with jQuery val.

jQuery✓ Tested
jQueryText & attributes

Set an element attribute

Update an HTML link using jQuery attr.

jQuery✓ Tested
Arduino / CData & storage

Set and inspect a bit flag

Store several boolean states in one byte.

bitSet✓ Tested
HTMLTables & list numbering

Set consistent widths for table columns

HTML: A colgroup applies presentation to whole columns without repeating styles on every cell.

HTML✓ Tested
jQueryText & attributes

Set text safely

Use jQuery text to insert literal content instead of interpreting HTML.

jQuery✓ Tested
HTMLData & disclosure

Show a bounded measurement

Display a measured value within a known range using HTML meter.

HTML✓ Tested
HTMLData & disclosure

Show determinate progress

Represent known completion with an HTML progress element.

HTML✓ Tested
HTMLGetting Started

Show progress with a native element

HTML: Learn how to show progress with a native element in a complete browser example.

HTML✓ Tested
HTMLNative disclosure & dialogs

Show the current value of a range input

HTML: Mirror range input events into a labeled output for a native slider.

HTML✓ Tested
Arduino / CSensor calculations

Smooth a sequence with an exponential filter

Arduino / C: Blend each sample with the previous filtered value.

Arduino / C✓ Tested
JavaCollections

Sort a list

Sort a mutable Java list in natural ascending order.

Java✓ Tested
Arduino / CArrays & embedded state

Sort a small array in place

Arduino / C: Insertion sort needs no additional array and is suitable for small datasets.

Arduino / C✓ Tested