This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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. |
NewerOlder