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 todoist | |
| from escpos import printer | |
| therm = printer.Usb(0x0416, 0x5011) # connect to printer | |
| api = todoist.TodoistAPI('79d4d663cc5011ab78cd7004e26a1a060572c823') # connect to todoist | |
| api.sync() # get new data from todoist | |
| therm.image('name.png') # print header image | |
| therm.text('\n') # add a blank line |
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 hashlib | |
| import itertools | |
| import string | |
| import time | |
| import console | |
| def encrypt(data): | |
| return hashlib.md5(data).hexdigest() | |
| def crack(hash, charset, maxlength): |
NewerOlder