<commit_before>---
title: "I got bored and wrote a webscraper for basketball reference"
categories:
  - actual_ignorance
tags:
  - datasets
use_math: true
---

Integrating MathJax with Jekyll is a very convenient way of typesetting mathematics in a blog hosted on github pages. There are a few guides online, which were (almost) helpful in acheiving this on a github hosted site. The steps, as of September 2016, are:

Ensure the markdown engine is set to `kramdown` in `_config.yml`. This is now the [only supported markdown processor](https://help.github.com/articles/updating-your-markdown-processor-to-kramdown/) on github pages, so this should be set anyway.

Include a new file in `_includes` named `_mathjax_support.html` (a clever idea from [here](http://haixing-hu.github.io/programming/2013/09/20/how-to-use-mathjax-in-jekyll-generated-github-pages/)):

```
<script type="text/x-mathjax-config"><commit_msg>Removed tags in bball ref post.<commit_after>---
title: "I got bored and wrote a webscraper for basketball reference"
use_math: true
---

Integrating MathJax with Jekyll is a very convenient way of typesetting mathematics in a blog hosted on github pages. There are a few guides online, which were (almost) helpful in acheiving this on a github hosted site. The steps, as of September 2016, are:

Ensure the markdown engine is set to `kramdown` in `_config.yml`. This is now the [only supported markdown processor](https://help.github.com/articles/updating-your-markdown-processor-to-kramdown/) on github pages, so this should be set anyway.

Include a new file in `_includes` named `_mathjax_support.html` (a clever idea from [here](http://haixing-hu.github.io/programming/2013/09/20/how-to-use-mathjax-in-jekyll-generated-github-pages/)):

```
<script type="text/x-mathjax-config">
{'fraction_non_alphanumeric': 0.10166666666666667, 'fraction_numerical': 0.013333333333333334, 'mean_word_length': 4.610591900311526, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '492823', 'n_tokens_mistral': 573, 'n_tokens_neox': 532, 'n_words': 208}