Skip to content

Instantly share code, notes, and snippets.

View kwitkari's full-sized avatar
🤗
happy

kwitkati kwitkari

🤗
happy
View GitHub Profile
@kwitkari
kwitkari / neovim.md
Created June 23, 2026 17:07 — forked from nmnmcc/neovim.md
NeoVim Cheat Sheet

NeoVim Cheat Sheet

I. Basic Concepts

1. Modes

NeoVim is a modal editor, primarily featuring the following modes:

  • Normal Mode: The default mode for navigating, deleting, copying, and pasting text. Press Esc to return to this mode from others.
  • Insert Mode: Used for typing text. Enter it with keys like i, a, o.
@kwitkari
kwitkari / bt2020_to_bt709.py
Created June 19, 2026 13:13 — forked from bean-mhm/bt2020_to_bt709.py
Convert RGB Tristimulus from Linear BT.2020 to Linear BT.709 (Rec. 709)
import numpy as np
# https://www.colour-science.org/
import colour
mat_bt2020_to_xyz = colour.models.RGB_COLOURSPACE_BT2020.matrix_RGB_to_XYZ
mat_xyz_to_bt709 = colour.models.RGB_COLOURSPACE_BT709.matrix_XYZ_to_RGB
mat_bt2020_to_bt709 = np.matmul(