Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
set ignorecase | |
set smartcase | |
set scrolloff=3 " 3 lines above/below cursor when scrolling | |
" Emulated Plugins | |
set surround | |
" set easymotion | |
set NERDTree | |
" Copy to system clipboard as well |
k() { | |
command kubectl --namespace="${_kube_ns:-default}" $@ | |
} | |
alias kgp='k get pods' | |
alias kgs='k get svc' | |
alias kgn='k get ns' | |
kubectl() { | |
k "$@" |
# Uses the Python Imaging Library | |
# `pip install Pillow` works too | |
from PIL import Image | |
image_filename = "picture_with_EXIF.jpg" | |
image_file = open('image_filename) | |
image = Image.open(image_file) | |
# next 3 lines strip exif | |
image_data = list(image.getdata()) |
import logging.config | |
import os | |
from django.utils.log import DEFAULT_LOGGING | |
# Disable Django's logging setup | |
LOGGING_CONFIG = None | |
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper() | |
logging.config.dictConfig({ |
/**************************\ | |
Basic Modal Styles | |
\**************************/ | |
.modal { | |
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
} | |
.modal__overlay { | |
position: fixed; |
import numpy as np | |
import scipy.linalg | |
import scipy.stats | |
def ks_key(X): | |
'''Estimate the key from a pitch class distribution | |
Parameters | |
---------- | |
X : np.ndarray, shape=(12,) |
import os | |
import librosa | |
import matplotlib | |
import matplotlib.pyplot as plt | |
matplotlib.rcParams['svg.fonttype'] = 'none' | |
import numpy as np | |
from scipy.io.wavfile import read as readwav | |
# Constants |
— Clone repository with submodules automatically:
git clone --recursive [email protected]:name/repo.git
— Initialize submodules after regular cloning:
import os | |
import graphviz | |
from dask.optimize import key_split | |
from dask.dot import _get_display_cls | |
from dask.core import get_dependencies | |
def node_key(s): | |
if isinstance(s, tuple): |