Skip to content

Instantly share code, notes, and snippets.

@ChuanyuXue
ChuanyuXue / morandi.py
Last active November 14, 2024 08:16
Morandi Palette: A palette with 18 colors inspired by Giorgio Morandi
import os
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
from collections import defaultdict
from gurobipy import Model, GRB
from PIL import Image
colors = [
'#686789', '#B77F70', '#E5E2B9', '#BEB1A8', '#A79A89', '#8A95A9',
@hansrajdas
hansrajdas / vim.md
Last active March 27, 2025 19:28
VIM commands

Acronym

  • C-a ==> CTRL-a

Modes in VIM

  • Normal mode(n) When we open mode, the default mode is normal
  • Insert mode(i) When we want to insert some text, we press i, a or A etc to go in insert mode
  • Command mode(c) When we type colon(:) from normal mode, we enters command mode
  • Visual mode(v) Using v or V or C-i

Start VIM

@jeez
jeez / Scheduled Tx Tools
Last active March 20, 2025 07:07
[TSN] Scheduled Tx Tools - Examples and Helpers for testing SO_TXTIME, and the etf and taprio qdiscs
We couldn’t find that file to show.