Skip to content

Instantly share code, notes, and snippets.

View codementum's full-sized avatar

Lane Harrison codementum

View GitHub Profile

Keybase proof

I hereby claim:

  • I am codementum on github.
  • I am laneharrison (https://keybase.io/laneharrison) on keybase.
  • I have a public key ASDG8tjHWFxultoNVfRCypZHRlk59CARjc6_dZXjQ9oWuQo

To claim this, I am signing this object:

@codementum
codementum / refugees-worcester.r
Created February 1, 2017 00:43
Plot of refugee data for Worcester MA (2012 counts) and status (as of Jan 31 2017)
refugees <- data.frame(
country = c("Iraq", "Bhutan", "Burma", "Burundi", "Somalia", "Liberia", "Vietnam", "Congo", "CAR", "Ethiopia", "Other"),
number = c(837, 617, 272, 112, 101, 45, 38, 34, 29, 11, 100),
Status = c("BANNED", "PERMITTED", "PERMITTED", "PERMITTED", "BANNED", "PERMITTED", "PERMITTED", "PERMITTED", "PERMITTED", "PERMITTED", "UNKNOWN")
)
palette <- cbPalette <- c("#D55E00", "#0072B2", "#CC79A7")
ggplot(data = refugees) +
geom_col(mapping = aes(x = reorder(country, -number), y = number, fill = Status)) +
// Adding HindSight to @nytgraphics "Why Republicans Don't Even Try to Win Cities Anymore"
// url: http://www.nytimes.com/2016/11/03/upshot/why-republicans-dont-even-try-to-win-cities-anymore.html?smid=tw-upshotnyt&smtyp=cur&_r=1
// To try this out, open the JavaScript console in your browser and paste this entire script.
// Select the main element in the Vis (circles)
d3.selectAll('circle')
.on('mouseover', function() {
var that = this;
@codementum
codementum / .block
Last active September 30, 2016 20:08
Streamgraph
license: mit
@codementum
codementum / .block
Created September 30, 2016 19:20
Streamgraph
license: mit
@codementum
codementum / .block
Created September 30, 2016 19:20
Streamgraph
license: mit
@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 / 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 / datavis-paper-signups.md
Created November 3, 2015 23:57
signup for datavis VIS 2015 lab presentation

Team Names | Paper Title

@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