As configured in my dotfiles.
start new:
tmux
start new with session name:
| """ | |
| Specifically, the Kullback–Leibler divergence from Q to P, denoted DKL(P‖Q), is | |
| a measure of the information gained when one revises one's beliefs from the | |
| prior probability distribution Q to the posterior probability distribution P. In | |
| other words, it is the amount of information lost when Q is used to approximate | |
| P. | |
| """ | |
| import numpy as np | |
| from scipy.stats import entropy |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| #!/bin/sh | |
| # | |
| # Setup a work space called `work` with two windows | |
| # first window has 3 panes. | |
| # The first pane set at 65%, split horizontally, set to api root and running vim | |
| # pane 2 is split at 25% and running redis-server | |
| # pane 3 is set to api root and bash prompt. | |
| # note: `api` aliased to `cd ~/path/to/work` | |
| # | |
| session="work" |
| #!/usr/bin/env bash | |
| function get_headphones_index() { | |
| echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}') | |
| } | |
| function get_headphones_mac_address() { | |
| local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3) | |
| temp="${temp%\"}" | |
| temp="${temp#\"}" |
Table of Contents