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
# from https://packaging.python.org/tutorials/packaging-projects/ | |
# make sure to start in the directory where your setup.py is located | |
pip install -U setuptools wheel twine | |
python setup.py sdist bdist_wheel | |
# test that things work first if needed | |
twine upload --repository-url https://test.pypi.org/legacy/ dist/* | |
pip install --index-url https://test.pypi.org/simple/ <package-name> |
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
// ==UserScript== | |
// @name Focused StackExchanges | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Remove distracting things (hot network questions) from StackExchange pages | |
// @author Nathan Hunt | |
// @match https://stackoverflow.com/* | |
// @match https://*.stackexchange.com/* | |
// @match https://superuser.com | |
// @grant none |
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
// ==UserScript== | |
// @name Focused YouTube | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Remove distracting things (comments, other video suggestions) from YouTube video pages | |
// @author Nathan Hunt | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name MathJax | |
// @namespace http://tampermonkey.net/ | |
// @version 2.0 | |
// @description Add Mathjax to webpages | |
// @author Nathan Hunt | |
// @match https://trello.com/* | |
// @grant none | |
// ==/UserScript== |
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 requests | |
import lxml.html | |
from urllib.parse import unquote | |
from tqdm import tqdm | |
import asyncio | |
from aiohttp import ClientSession, TCPConnector | |
import aiofiles | |
# import async_timeout | |
from argparse import ArgumentParser | |
from typing import List, Optional |