Skip to content

Instantly share code, notes, and snippets.

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

Bo Ferri zazi

🍌
hell yeah!
View GitHub Profile
@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()
@mplewis
mplewis / safe_schedule.py
Last active April 23, 2024 01:12
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')