Skip to content

Instantly share code, notes, and snippets.

View mattdennewitz's full-sized avatar

Matt Dennewitz mattdennewitz

  • Lancaster, OH
View GitHub Profile
@mattdennewitz
mattdennewitz / run_exp.py
Last active December 12, 2015 04:58
1999-2002 Run Expectancy (from CSV)
import csv
import glob
import os
import sys
from mattreduce import Job
get_state = lambda outs, bases: '%s:%s' % (outs, bases)
@mattdennewitz
mattdennewitz / gist:4736652
Last active December 12, 2015 07:28
Adding QS to Steamer export from Fangraphs
@mattdennewitz
mattdennewitz / es.sh
Last active December 14, 2015 05:09 — forked from johnvilsack/es.sh
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre -y
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.5.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /opt
chown matt:matt -R /opt/elasticsearch
@mattdennewitz
mattdennewitz / remove_duplicate_files.py
Created September 16, 2013 19:24
Remove duplicate files in a path by scanning, reading, hashing, deleting.
#!/usr/bin/env python
import collections
import glob
import os
import sys
import zlib
found = collections.defaultdict(list)
@mattdennewitz
mattdennewitz / bio.md
Last active February 4, 2016 05:19
Bio

Matt Dennewitz is the VP of Product at Pitchfork. Initially Pitchfork's first full-time developer, he's overseen the scaling and platform maturation of both one of the world's most popular and influential music publications and its award-winning engineering team. Matt also acts as CTO for BeerGraphs, which measures the analytics of beer, and recently launched Saber Archive, a community-driven archive for advanced baseball research. He lives in Chicago with wife, Melissa.

background: -webkit-linear-gradient(90deg, #1D976C 10%, #93F9B9 90%); /* Chrome 10+, Saf5.1+ */
background: -moz-linear-gradient(90deg, #1D976C 10%, #93F9B9 90%); /* FF3.6+ */
background: -ms-linear-gradient(90deg, #1D976C 10%, #93F9B9 90%); /* IE10 */
background: -o-linear-gradient(90deg, #1D976C 10%, #93F9B9 90%); /* Opera 11.10+ */
background: linear-gradient(90deg, #1D976C 10%, #93F9B9 90%); /* W3C */
@mattdennewitz
mattdennewitz / dark.el
Created October 1, 2014 17:16
Emacs themes
(defun cubshat ()
(interactive)
(color-theme-install
'(cubshat
((background-color . "#222222")
(background-mode . light)
(border-color . "#222222")
(cursor-color . "#999999")
(foreground-color . "#e5dcdc")
(mouse-color . "black"))

Keybase proof

I hereby claim:

  • I am mattdennewitz on github.
  • I am mattdennewitz (https://keybase.io/mattdennewitz) on keybase.
  • I have a public key whose fingerprint is FCA5 4A5B 36C3 51D8 86B8 0B9E CC56 E923 11EB F00F

To claim this, I am signing this object:

1. don't drop it - dj rashad
2. generator 1 - kfw
3. wide awake - kaitlin aurelia smith
4. zebra - onp
5. clearing - grouper
6. brazil - luke abbott
7. reservoir - metronomy
8. black draft - nathan fake
9. rough 2 - tessela
10. the red wing - fuck buttons
@mattdennewitz
mattdennewitz / gist:2ad20725bfad967423b5
Last active August 29, 2015 14:15
Marcel skeleton
-- create marcel projection data source using 3 previous years
-- of data, excluding pitchers.
--
-- note: this exclusion method risks removing batters who have pitched.
-- instead, we should look for players with more
-- PA than batters faced.
drop table if exists marcel_batting;
create table
marcel_batting
as (