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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Pre-loaded theme | |
ZSH_THEME="agnoster" | |
# (Will change per machine) | |
DEFAULT_USER="danmiller" | |
# Dots are pretty. |
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
" .---. | |
" / . \ | |
" |\_/| | | |
" | | /| | |
" .----------------------------------------------------------------' | | |
" / .-. | | |
" | / \ | | |
" | |\_. | | | |
" |\| | /| MY .vimrc - Last updated whenever | | |
" | `---' | | |
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
\documentclass{tufte-handout} | |
\usepackage{amsmath} | |
% Set up the images/graphics package | |
\usepackage{graphicx} | |
\setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio} | |
\graphicspath{{figures/}} | |
\title{TITLE} | |
\author{AUTHOR} |
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
# Test for ltitr implemented in Julia. I get about 45 ms. | |
function ltitr(A, B, U) | |
N = size(U, 2) | |
X = zeros(size(A, 1), N) | |
for i = 2:N | |
X[:, i] = A*X[:, i-1] + B*U[:, i-1] | |
end | |
return X | |
end |
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 csv | |
from collections import namedtuple | |
from datetime import timedelta | |
team = lambda *x: dict(zip(('City', 'Mascot', 'Division'), x)) | |
teams = { | |
'BUF': team('Buffalo', 'Bills', 'AFC East'), | |
'MIA': team('Miami', 'Dolphins', 'AFC East'), | |
'NE': team('New England', 'Patriots', 'AFC East'), | |
'NYJ': team('New York', 'Jets', 'AFC East'), |
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
# Apt-install various things necessary for Ruby, guest additions, | |
# etc., and remove optional things to trim down the machine. | |
apt-get -y update | |
apt-get -y remove apparmor | |
apt-get -y install linux-headers-$(uname -r) build-essential | |
apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev | |
apt-get clean | |
# Remove this file to avoid dhclient issues with networking | |
rm -f /etc/udev/rules.d/70-persistent-net.rules |
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
Building Panda3D from source on newish OS X. | |
1. Install the following homebrew formlae: | |
- python | |
- nspr | |
- vrpn (optional, for joysticks/etc.) | |
- libjpeg, libtiff | |
- fftw |
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
# Custom cmake target for creating a target using gtest for unit testing. | |
function(add_gtest_target TARGET_NAME TARGET_LIB) | |
set(TEST_EXEC _${TARGET_LIB}_test) | |
# Build the test executable. | |
add_executable(${TEST_EXEC} ${ARGN}) | |
target_link_libraries(${TEST_EXEC} ${TARGET_LIB}) | |
# gtest was not found with a find_package command and must be linked to |
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
Fundamentals: | |
sudo apt-get install \ | |
curl \ | |
wget \ | |
vim-gtk \ | |
build-essential \ | |
libatlas-base-dev \ | |
gfortran \ | |
python-dev \ |
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
function K = pidift(K, yd, y, u, gamma, lambda, beta) | |
% K = pidift - Calculate new PID gains from existing gains of a discrete | |
% PID controller | |
% | |
% K = pidift(K, yd, y, u) | |
% | |
% Calculate the new PID gains that will move the current system | |
% response closer to the desired system response. K is a vector of | |
% the current PID gains, [Kp, Ki, Kd], where the controller structure | |
% is of the following form: |
OlderNewer