Skip to content

Instantly share code, notes, and snippets.

View codementum's full-sized avatar

Lane Harrison codementum

View GitHub Profile
@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() {
#!/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
### 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'
@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
@codementum
codementum / README.md
Last active December 23, 2015 14:14
Plan for the new Data Science student space in Atwater Kent

WPI Data Science Student Space Design

Items

🔵 TODO ✅ Decided

Tech:

  • Computers
@codementum
codementum / datavis-paper-signups.md
Created November 3, 2015 23:57
signup for datavis VIS 2015 lab presentation

Team Names | Paper Title

@codementum
codementum / server-example.js
Created November 16, 2015 18:51
An easy way to parse POST request body with Express
var express = require('express');
var path = require('path');
// Get this by running `npm install body-parser`
var bodyParser = require('body-parser')
var app = express();
var port = process.env.PORT || 3000;
// Add this to support URL-encoded bodies
@codementum
codementum / nv-v2.md
Created December 7, 2015 00:10
Help extend the nv project

Project Extend NV: Nessus Vulnerability Visualization

Note: if you choose to do this for your 4241 final project, make sure you work on something that includes a server component.

Nv is an interactive data visualization for analyzing Nessus Vulnerability scans. Prioritizing and patching vulnerabilities is a critical task in security operations.

@codementum
codementum / .block
Created September 30, 2016 19:20
Streamgraph
license: mit
@codementum
codementum / .block
Created September 30, 2016 19:20
Streamgraph
license: mit