I hereby claim:
- I am singerng on github.
- I am singerng (https://keybase.io/singerng) on keybase.
- I have a public key whose fingerprint is 6B8D A9D6 BF5D EBE7 CF71 A1FB 7A01 F3AB BC78 9C34
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Reasonable default configuration for a web app that uses Django and the following dependencies:
This is my goto for setting up projects.
function protectMath(text) { | |
if (text) return text.replace(/(\\\(.*?\\\))/g, '<script>{$1}</script>'); | |
return ""; | |
} | |
// wrap all latex in <script></script> | |
if (Translator.BetterTeX) { | |
if (reference.has.title) reference.add({ name: 'title', value: protectMath(item.title) }); | |
if (reference.has.abstract) reference.add({ name: 'abstract', value: protectMath(item.abstract) }); | |
# install tolerable version of ruby | |
# brew install rbenv | |
rbenv install 3.1.2 # lookup current ruby version | |
rbenv rehash | |
rbenv global 3.1.2 | |
# merge pdfs in directory (sorted, so use numerical prefixes in order) | |
# brew install poppler | |
pdfunite *.pdf output.pdf |
from bs4 import BeautifulSoup | |
from nltk.stem import SnowballStemmer | |
from nltk.corpus import cess_esp as corpus | |
from nltk import FreqDist | |
import csv | |
words = [] | |
with open("kindle.html") as f: | |
soup = BeautifulSoup(f.read(), 'html.parser') |