Skip to content

Instantly share code, notes, and snippets.

@eaybek
eaybek / docker_names.py
Created August 21, 2021 12:38 — forked from philchristensen/docker_names.py
Generate random Docker-style names.
import random
def get_random_name():
index = random.randint(0, len(adjectives) - 1)
jndex = random.randint(0, len(names) - 1)
return adjectives[index] + ' ' + names[jndex]
adjectives = [
"admiring",
"adoring",
@eaybek
eaybek / TrueColour.md
Created August 24, 2019 23:37 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@eaybek
eaybek / matplotlib.md
Created August 20, 2019 08:56 — forked from ax3l/matplotlib.md
Matplotlib: Axes vs Axis vs Figure vs ...
@eaybek
eaybek / meta-tags.md
Last active March 27, 2019 18:48 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags