Skip to content

Instantly share code, notes, and snippets.

View sebastiandres's full-sized avatar
🙃
japi

Sebastian Flores sebastiandres

🙃
japi
View GitHub Profile
@cueo
cueo / xkcd_2445.py
Last active May 13, 2021 03:47
Talk to xkcd checkbox
# https://xkcd.com/2445
import requests
BASE_URL = 'https://xkcd.com/2445/morse/.../-.._-..._...--_...--_....-_.-_.-_-..._-....-_----._..---_.-_.----_-....-_.----_.----_._-..._-....-_---.._-----_-----_.----_-....-_---.._-.-._.----_-...._....-_....._....-_..-._-..._-----_..---_.-/'
MORSE_CODE_DICT = { 'A':'.-', 'B':'-...',
'C':'-.-.', 'D':'-..', 'E':'.',
'F':'..-.', 'G':'--.', 'H':'....',
'I':'..', 'J':'.---', 'K':'-.-',