Skip to content

Instantly share code, notes, and snippets.

View codementum's full-sized avatar

Lane Harrison codementum

View GitHub Profile
@codementum
codementum / web.sh
Created March 25, 2015 20:23
Updating course website from repo
cd ~/dev/biovis/
git pull
cp -r ~/dev/biovis/web/* ~/public_html/biovis
cp -r ~/dev/biovis/assignments/* ~/public_html/biovis/assignments
cp -r ~/dev/biovis/lectures/* ~/public_html/biovis/lectures
cp -r ~/dev/biovis/labs/* ~/public_html/biovis/labs
cp -r ~/dev/biovis/vid/* ~/public_html/biovis/vid
cd ~/public_html/biovis
### Table
### Scenarios
1. "age":81, "psa": 20, "stage": 'T2b', "gleason1": 4.0, "gleason2": 5.0, "differentiation": 'moderate'
2. "age":80, "psa": 20, "stage": 'T2b', "gleason1": 4.0, "gleason2": 5.0, "differentiation": 'moderate'
3. "age":79, "psa": 20, "stage": 'T2b', "gleason1": 4.0, "gleason2": 5.0, "differentiation": 'moderate'
4. "age":80, "psa": 20, "stage": 'T2b', "gleason1": 4.0, "gleason2": 5.0, "differentiation": 'moderate'
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.9
@codementum
codementum / index.js
Created August 8, 2012 22:58
Google Basketball
// Google Doodle Basketball Game
// Important! Game must be started immediately after code starts.
// To do this:
// 1. paste the code into the console (don't hit enter!)
// 2. center your mouse over the start game button (don't click anywhere!)
// 3. hit enter and immediately click the start button.
// (bonus feature: stage changes make the player nervous, and they will miss badly)
function makeInterval(ms) {
return setInterval(function() {