This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION=0.14.0 | |
SPECIFIER=arduino-cli_${VERSION}_Linux_64bit | |
BINDIR=/usr/local/bin/ | |
# - Avoid redownloading | |
# - Avoid overwriting | |
# - To overwrite, use make uninstall | |
install: | |
TMPDIR=/tmp/$(SPECIFIER) && \ | |
mkdir -p $${TMPDIR} && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import logging | |
VERSION = '3.0' | |
parser = argparse.ArgumentParser(description='Luttify your messages') | |
parser.add_argument('message', metavar='message', type=str, | |
help='add a Lutti to be Luttified') | |
parser.add_argument('-up', '--uppercase', action='store_true', | |
default=False, dest='uppercase', | |
help='outputs Lutti\'s message as it should be') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from re import compile, findall, split | |
with open('original_file', 'r') as of: | |
with open('fixed_file', 'w') as ff: | |
for line in of: | |
# looks for substrings that are either 'u00fo' or '\u00fo' | |
pattern = compile(r'\\?u00..') | |
code_points = findall(pattern, line) | |
pieces = split(pattern, line) | |
res = '' |