Skip to content

Instantly share code, notes, and snippets.

View henry-thompson's full-sized avatar
🦞

Henry Thompson henry-thompson

🦞
View GitHub Profile
@henry-thompson
henry-thompson / portal-to-gavel.js
Last active January 18, 2018 14:49
Converts the sponsors' attendees' information in the Hack Cambridge Sponsors' Portal to a CSV digestible by the Gavel hackathon expo judging system's user entry method
// Converts a dump of the Firebase database from the Hack Cambridge Sponsors'
// portal into a CSV compatible with the Gavel hackathon judging system
if (!process.argv[2]) {
return console.log('Provide input JSON filename');
}
var fs = require('fs');
var data = JSON.parse(fs.readFileSync(process.argv[2], 'utf8'));
@henry-thompson
henry-thompson / latex.json
Last active May 15, 2017 16:28
Visual Studio Code LaTeX Configuration File
{
"Supervision Work Template": {
"prefix": "supervision",
"body": [
"\\documentclass[11pt]{article}",
"\\usepackage{mdframed}",
"\\usepackage{parskip}",
"\\usepackage{amsmath}",
"\\usepackage{amsfonts}",
"\\usepackage{minted}",
@henry-thompson
henry-thompson / peterson_davie_ch5q26.ml
Created February 13, 2017 18:11
Answers the Chapter 5, Question 26 in Peterson and Davie's "Networking: A Systems Approach"
(* OCaml program to answer this question *)
let delta = 0.125
let mu = 1.0
let phi = 4.0
let timeout (estimate_rtt, deviation) = mu *. estimate_rtt +. phi *. deviation;;
let calculate_estimate (old_estimate_rtt, old_deviation, sample_rtt) =
let difference = sample_rtt -. old_estimate_rtt in

Keybase proof

I hereby claim:

  • I am henry-thompson on github.
  • I am henrythompson (https://keybase.io/henrythompson) on keybase.
  • I have a public key whose fingerprint is 6CEC 572C FFA4 A345 A21D 9878 24AA A4BB DB0A 8010

To claim this, I am signing this object: