Skip to content

Instantly share code, notes, and snippets.

View w0whitaker's full-sized avatar

William Whitaker w0whitaker

View GitHub Profile

This gist is a simple no-brainer description of the 3 ways (actually 2.5) the Web handle events.

<tag onclick />

The declarative inline HTML event listener is mostly an indirection of DOM Level 0 events, meaning this simply uses the equivalent of tag.onclick = listener behind the scene.

Example

click me
@gtankha
gtankha / Regular_Expression_HEX_gt.md
Last active July 12, 2024 11:51
Regular Expressions - Match HEX Values

Regular Expression -- Match HEX Values

This file is intended to explain the details of how a specific regular expression works. This particular regular expression is used to match a HEX value. The description below will detail each component of the regular expression and how it works.

Summary

We will be evaluating the following regular expressions used to match HEX values:

/^#?([a-f0-9]{6}|[a-f0-9]{3})$/

@fnky
fnky / ANSI.md
Last active October 31, 2025 02:34
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@jasonm23
jasonm23 / xterm-256color.svg
Last active August 11, 2025 17:37
Xterm 256color mode color chart, organised into sections. (used on Wikipedia/xterm)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.