Skip to content

Instantly share code, notes, and snippets.

View ChuanyuXue's full-sized avatar

Skewcy ChuanyuXue

View GitHub Profile
@ChuanyuXue
ChuanyuXue / morandi.py
Last active August 16, 2024 08:45
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 September 8, 2024 16:58
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 July 11, 2024 05:08
[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.