Skip to content

Instantly share code, notes, and snippets.

@BastiTee
BastiTee / .gitignore
Last active February 26, 2024 07:59
Use turndown to create a markdown file from an HTML file
*.md
!README.md
node_modules/
@BastiTee
BastiTee / poc-paywall-gabonn.py
Last active October 26, 2023 18:54
Proof of concept: Paywall used on gabonn.de
# -*- coding: utf-8 -*-
"""Proof-of-concept.
This scripts tries to document the drawbacks of the paywall used on General-Anzeiger Bonn.
http://gabonn.de/
As with many other paywalls the content behind the paywall is still present – in this
case with letter-randomized "blurred" words. The raw data itself can easily be obtained
with any HTML parser like BeautifulSoup.
@BastiTee
BastiTee / tolino.py
Last active August 20, 2023 18:45
A vanilla Python3-script to convert a Tolino notes.txt file to one Markdown file per book.
# https://github.com/BastiTee/tolino-notes
@BastiTee
BastiTee / download_pocket_articles.py
Created July 19, 2022 16:02
A vanilla py-script to download all Pocket.com data via API.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""A vanilla py-script to download all Pocket.com data via API.
Read before:
- https://blog.getpocket.com/2012/11/introducing-the-new-pocket-api-for-developers-and-publishers/
- https://getpocket.com/developer/docs/authentication
"""
import json
@BastiTee
BastiTee / README.md
Last active June 8, 2022 07:51
Example Jupyter notebook to use Pandas along with D3.js

This code is now available at Kaggle.

@BastiTee
BastiTee / README.md
Last active June 8, 2022 07:50
Bundesliga Volatility Kata

This code is now available at Kaggle.

@BastiTee
BastiTee / README.md
Last active June 8, 2022 07:50
Rougeux Grid Kata

This code is now available at Kaggle.

@BastiTee
BastiTee / README.md
Last active June 8, 2022 07:49
Jupyter | 2022 state election – Bonn, Germany (Part 2)

This code is now available at Kaggle.

@BastiTee
BastiTee / README.md
Last active June 8, 2022 07:49
Jupyter | 2022 state election – Bonn, Germany (Part 1)

This code is now available at Kaggle.

@BastiTee
BastiTee / run-me.sh
Created May 2, 2022 17:27
New Python version bootstrap command
#!/bin/bash
# This assumes that python and pyenv is already installed and configured.
# https://github.com/pyenv/pyenv#installation
# Install minimal bootstrapping environment
python -m pip install --upgrade \
pip \
pipdeptree \
pipenv \
poetry