Skip to content

Instantly share code, notes, and snippets.

View bicycleprincess's full-sized avatar
😊

Wei Yang bicycleprincess

😊
  • Berlin
View GitHub Profile
@bicycleprincess
bicycleprincess / baudot.py
Last active October 18, 2024 12:08
Hamming Code in Python with special Baudot, encoding, correcting, decoding, conventional way.
import textwrap
def list2string(data):
return ''.join(map(str, data))
# http://codegolf.stackexchange.com/questions/94056/telegraphy-golf-decode-baudot-code
SIGNS = {
"FS": "00010",
"LS": "00001",
"SP": "00011", # take fron ER