Skip to content

Instantly share code, notes, and snippets.

View scottfleming's full-sized avatar
🎯
Focusing

Scott Fleming scottfleming

🎯
Focusing
View GitHub Profile
@stephtdouglas
stephtdouglas / connelly_palette.py
Last active January 23, 2023 05:40
Color palettes for color blindness from
# http://bconnelly.net/2013/10/creating-colorblind-friendly-figures/
from __future__ import print_function, division
import matplotlib.pyplot as plt
from matplotlib import colors
from cycler import cycler
import numpy as np
palette_names = np.array(["Black", "Orange", "SkyBlue", "#009e73",
@thriveth
thriveth / CBcolors.py
Created January 22, 2014 14:52
A color blind/friendly color cycle for Matplotlib line plots. Might want to shuffle it around a bit more,but already not it gives kinda good contrasts between subsequent colors, and shows reasonably well in colorblind filters (though not in pure monochrome).
CB_color_cycle = ['#377eb8', '#ff7f00', '#4daf4a',
'#f781bf', '#a65628', '#984ea3',
'#999999', '#e41a1c', '#dede00']
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a