Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mikemhenry on github. | |
* I am mmh (https://keybase.io/mmh) on keybase. | |
* I have a public key ASChLPeKRUw3b_MnS0vC4vqTcGnYnWnsQZzvJCIP-PAZ_Ao | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib | |
matplotlib.use('agg') | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from scipy.optimize import curve_fit | |
x = np.linspace(0,100) | |
noise = np.random.normal(0, 2, len(x)) | |
simulated_data = x*3 + 5 + noise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" This file controls vim settings | |
" Adds line numbers | |
set nu | |
" Turn on syntax highlighting | |
syntax on | |
" Tab things | |
set tabstop=4 | |
set softtabstop=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# See http://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line | |
echo "Checking Xcode CLI tools" | |
# Only run if the tools are not installed yet | |
# To check that try to print the SDK path | |
xcode-select -p &> /dev/null | |
if [ $? -ne 0 ]; then | |
echo "Xcode CLI tools not found. Installing them..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
origfile="$(realpath "${1}")" | |
basefile="$(basename "${origfile}")" | |
basedir="$(dirname "${origfile}")" | |
ext="${basefile##*.}" | |
newfile="$(basename -s "${ext}" "${origfile}")nodv.${ext}" | |
echo "Transcoding File ${basefile} in ${basedir}..." |