Skip to content

Instantly share code, notes, and snippets.

View boferri's full-sized avatar
🍌
hell yeah!

Bo Ferri boferri

🍌
hell yeah!
  • Dresden, Germany
View GitHub Profile
@mplewis
mplewis / safe_schedule.py
Last active July 15, 2026 18:41
An implementation of Scheduler that catches jobs that fail. For use with https://github.com/dbader/schedule
import logging
from traceback import format_exc
import datetime
from schedule import Scheduler
logger = logging.getLogger('schedule')
@johnberroa
johnberroa / remove_umlauts.py
Created July 26, 2018 20:00
Remove umlauts from text in Python
def remove_umlaut(string):
"""
Removes umlauts from strings and replaces them with the letter+e convention
:param string: string to remove umlauts from
:return: unumlauted string
"""
u = 'ü'.encode()
U = 'Ü'.encode()
a = 'ä'.encode()
A = 'Ä'.encode()