by 0xabad1dea September 2018 (updated June 2021)
You may notice a decidedly Nintendo bias to the examples. I can't change who I am.
Speedrunning is:
| ['America/Santiago', (datetime.datetime(2024, 4, 7, 3, 0), (datetime.timedelta(days=-1, seconds=72000), datetime.timedelta(0), '-04')), (datetime.datetime(2024, 9, 8, 4, 0), (datetime.timedelta(days=-1, seconds=75600), datetime.timedelta(seconds=3600), '-03'))] | |
| ['Chile/Continental', (datetime.datetime(2024, 4, 7, 3, 0), (datetime.timedelta(days=-1, seconds=72000), datetime.timedelta(0), '-04')), (datetime.datetime(2024, 9, 8, 4, 0), (datetime.timedelta(days=-1, seconds=75600), datetime.timedelta(seconds=3600), '-03'))] | |
| ['Chile/EasterIsland', (datetime.datetime(2024, 4, 7, 3, 0), (datetime.timedelta(days=-1, seconds=64800), datetime.timedelta(0), '-06')), (datetime.datetime(2024, 9, 8, 4, 0), (datetime.timedelta(days=-1, seconds=68400), datetime.timedelta(seconds=3600), '-05'))] | |
| ['Pacific/Easter', (datetime.datetime(2024, 4, 7, 3, 0), (datetime.timedelta(days=-1, seconds=64800), datetime.timedelta(0), '-06')), (datetime.datetime(2024, 9, 8, 4, 0), (datetime.timedelta(days=-1, seconds=68400), datetime.timedelt |
| r = open("amiga.fnt.raw", "rb") | |
| by = r.read() | |
| bi = [] | |
| for b in by: | |
| bits = ("0000000" + bin(b)[2:])[-8:] | |
| bits = bits.replace('0', '.').replace('1', 'X') | |
| bi.append(bits) | |
| print(bits) | |
| "Invocation to the horned one" | |
| "Two as one" | |
| "Three times a lady" | |
| "Four in the morning" | |
| "Five minutes to midnight" | |
| "Six feet under the stars" | |
| "Seven Nation Army" | |
| "Eight Days A Week" | |
| "Nine O Nine" | |
| "I close my eyes and count to ten" |
by 0xabad1dea September 2018 (updated June 2021)
You may notice a decidedly Nintendo bias to the examples. I can't change who I am.
Speedrunning is:
| import json | |
| with open("AtomicCards.json", "rb") as f: | |
| b = f.read() | |
| utf = b.decode('utf-8') | |
| j = json.loads(utf) | |
| for cardname in j['data']: | |
| card = j['data'][cardname][0] | |
| if 'text' in card: | |
| rules_text = card['text'] |
| http://wry.me/toys/bytebeat/?code0=t*(40%26t%3E%3E10)%20%2B%20t*(45%26t%3E%3E17)%20%2Bt*(40%26t%3E%3E10)%20%2B%20t*(48%26t%3E%3E14)&samplerate=44100&title=Variations%20on%20the%2042%20melody |
| import regex | |
| # edit: don't do this, just use | |
| print (regex.findall("\X", 'a 🏴 👨🏾👩🏾👧🏾 in 🇬🇧🇬🇧 has a ca̅t')) | |
| # instead | |
| #============================================== | |
| # Unicode regexes are documented at http://www.unicode.org/reports/tr18/tr18-19.html#Character_Blocks | |
| # \X appears to do exactly the right thing. |
| #!/usr/bin/env python | |
| import os | |
| import sys | |
| sys.path.append(os.getcwd()) # Handle relative imports | |
| import requests | |
| from le_utils.constants import licenses | |
| from ricecooker.classes.nodes import DocumentNode, VideoNode, TopicNode | |
| from ricecooker.classes.files import HTMLZipFile, VideoFile, SubtitleFile, DownloadFile, YouTubeVideoFile, YouTubeSubtitleFile | |
| from ricecooker.chefs import SushiChef | |
| import logging |
| import requests | |
| import zipfile | |
| from io import BytesIO | |
| from os import mkdir | |
| url = "https://docs.google.com/spreadsheets/d/INSERT_ID_OF_SPREADSHEET/export?format=zip" | |
| try: | |
| mkdir("public") | |
| except: | |
| pass |
| from tkinter import * | |
| master = Tk() | |
| other = Tk() | |
| o = Canvas(other, width=100, height=100) | |
| canvas_width = 1600 | |
| canvas_height = 900 | |
| w = Canvas(master, | |
| width=canvas_width, | |
| height=canvas_height) | |
| w.pack() |