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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"keys": ["ctrl+up"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false}}, | |
{"keys": ["ctrl+down"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true}}, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa" . "https://melpa.org/packages/")) | |
(when (< emacs-major-version 24) | |
;; For important compatibility libraries like cl-lib | |
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))) | |
(package-initialize) ;; You might already have this line | |
(require 'textmate) | |
(textmate-mode) |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|---------------------+----------| | |
| Name | P4K WAR | | |
|---------------------+----------| | |
| Bryce Harper | 10.0 | | |
| Mike Trout | 9.6 | | |
| Josh Donaldson | 9.3 | | |
| Paul Goldschmidt | 8.2 | | |
| Joey Votto | 8.2 | | |
| Manny Machado | 7.7 | | |
| Yoenis Cespedes | 7.6 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import collections | |
import glob | |
import os | |
import sys | |
import zlib | |
found = collections.defaultdict(list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
The following formula adds this quality start projection formula to the Steamer projections export from Fangraphs.
=IF(E2 > 0, ROUND((((I2/E2)/6.15)-(0.11*D2))*E2, 0), 0)
NB: This expects that you're tacking the column onto the end of the row.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import glob | |
import os | |
import sys | |
from mattreduce import Job | |
get_state = lambda outs, bases: '%s:%s' % (outs, bases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
last = '' | |
punc = ',' | |
while True: | |
c = sys.stdin.read(1) | |
if c: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import dateutil.tz | |
import pytz | |
def get_formatted_tz(zone): | |
"""Returns +/-HH:MM formatted time zone offset. |