mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-30 10:45:18 -06:00
The codegen.go command line utility now detects the package name from the file that it was invoked from if `--package` was not provided. It also processes all `.noms` files in the current directory in case the `--in` flag was not provided.
pitchmap
This directory contains a pipeline of tools that combine to generate a heatmap of locations for major league baseball pitchers.
The source data comes from:
http://gd2.mlb.com/components/game/mlb/
To use:
npm install
mkdir /tmp/mlb_data
node fetch-urls.js --url="http://gd2.mlb.com/components/game/mlb/year_2015/month_05/day_07/" --print="gid.*pitcher.*xml$|gid.*inning_[0-9]*\.xml" --reject="\/year_[0-9]+\/pitchers\/|\/year_[0-9]+\/mobile\/|\/year_[0-9]+\/media\/|\/year_[0-9]+\/batters\/|\/premium\/|\/notifications\/|\/pitching_staff\/|\/media\/|\/batters\/|\/[^\/]+\.[^\/]+$" > /tmp/mlb_data/urls.txt
cd /tmp/mlb_data
wget -e robots=off -x -i urls.txt
<noms>/clients/xml_importer/xml_importer -fs=/tmp/mlb_data -ds=mlb/xml gd2.mlb.com/
<noms>/clients/pitchmap/index/index -fs=/tmp/mlb_data -input-ds=mlb/xml -output-ds=mlb/heatmap