(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
config defaultToCurrentScreen true | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
# Monitor Aliases | |
alias mon-laptop 1440x900 | |
alias mon-thunderbolt 2560x1440 | |
alias mon-dell 1920x1080 |
[alias] | |
lg = log --graph --format='%Cred%h%Creset %C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
standup = log --since '1 day ago' --oneline --author 'YOUR_EMAIL_HERE' | |
standup-week = log --since '7 day ago' --oneline --author 'YOUR_EMAIL_HERE' | |
latest = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) [%(committername)]' | |
b = branch | |
ba = branch -a | |
d = !git diff | view - |
#!/usr/bin/env python | |
"""Calculate the Sobacchi & Mesinger global model parameters from a run. | |
Usage: sobacchi_params_from_run.py <fname> | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from dragons import meraxes |
import numpy as np | |
from dragons import meraxes | |
fname = "/lustre/projects/p021_astro/smutch/meraxes/tiamat/paper_runs/uvb/output/meraxes.hdf5" | |
# grab the snapshot list | |
snaplist, _, _ = meraxes.read_snaplist(fname) | |
# read all of the global_xH values | |
global_xH = meraxes.read_global_xH(fname, snaplist, quiet=True) |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <math.h> | |
#define SNAPSHOT 99 | |
#define INPUT_DIR "/home/gpoole/SSimPL/simulations/GiggleZ/GiggleZ_HR/grids/" | |
/** | |
* Compile with: |
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |