Skip to content

Instantly share code, notes, and snippets.

View GentlemanHu's full-sized avatar
🎯
Focusing

Gentleman.Hu GentlemanHu

🎯
Focusing
View GitHub Profile
@GentlemanHu
GentlemanHu / broadcast-channel.md
Created November 25, 2023 11:25 — forked from davestewart/broadcast-channel.md
Example of using BroadcastChannel to communicate with pages in the same domain

screenshot

@GentlemanHu
GentlemanHu / ANSI.md
Created October 19, 2020 06:19 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@GentlemanHu
GentlemanHu / .bash_aliases
Created September 23, 2020 12:37 — forked from vratiu/.bash_aliases
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset