Skip to content

Instantly share code, notes, and snippets.

View jd7h's full-sized avatar

Judith van Stegeren jd7h

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jd7h on github.
  • I am jd7h (https://keybase.io/jd7h) on keybase.
  • I have a public key whose fingerprint is BD1C CEB7 A2ED 8C82 F21B C921 9119 43FF E454 2CE7

To claim this, I am signing this object:

@jd7h
jd7h / Top 10 talks at 33c3.md
Last active December 31, 2017 20:23
Top 10 talks at 33c3 according to Twitter
@jd7h
jd7h / backup-and-unfollow.py
Last active August 22, 2019 19:49
Twitter following detox python script
#!/usr/bin/python
'''
USE AT YOUR OWN PERIL <3
Before using the script,
fill in your API keys,
fill in the whitelist,
do a small test run with a small list.
'''
@jd7h
jd7h / script.py
Created February 3, 2020 16:11 — forked from efonte/script.py
Disco Elysium texts
import re
strings = set()
with open('texts.txt', mode='r', encoding='utf-8') as file_input:
content = file_input.read()
regExStr = r'^\s*\d string title = "(?:tooltip\d+|Name|Dialogue Text)"\n\s*\d string value = "((?!(START|input|\w+\(\)|\!\(\w+\(\)\))).+)"$'
compiled = re.compile(regExStr, re.MULTILINE)
matched = compiled.finditer(content)
@jd7h
jd7h / requirements_to_yaml.py
Last active January 15, 2024 16:13
Quickly output requirements.txt of a Python project to the yaml format expected by cog
# usage:
# python -m venv venv
# source venv/bin/activate
# pip install -r requirements.txt
# pip freeze > requirements_frozen.txt
# python -m requirements_to_yaml --minimal
import re
import argparse