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
| #!/usr/bin/env zsh | |
| # Save a clipboard image using pngpaste, with optional oxipng optimization. | |
| # | |
| # Exit statuses: | |
| # 0 Image saved successfully | |
| # 1 Image could not be saved or the operation was cancelled | |
| # 2 Invalid command-line usage | |
| emulate -L zsh |
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
| {"label":"wikidata refreshed","message":"2026-08-05","schemaVersion":1,"color":"blue"} |
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
| def excepthook(*exc_info): | |
| """Log the traceback if program throws an unhandled exception.""" | |
| exc_type, exc_value, exc_traceback = exc_info | |
| exc_time = time.time() | |
| msg = f"{exc_type.__name__} @ {exc_time}" | |
| logging.critical(f"{msg}. Traceback ↓", exc_info=exc_info) | |
| logging.critical(f"{msg}. Traceback ↑") | |
| sys.excepthook = excepthook |
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
| [[feed]] | |
| title = "Letterform Archive" | |
| filename = "letterform-archive.rss" | |
| user_agent = "Mozilla/5.0 RSS Please https://rsspls.7bit.org/" | |
| [feed.config] | |
| url = "https://letterformarchive.org/news/" | |
| item = "article.post" | |
| heading = ".post__title" | |
| link = "h2 a" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <style> | |
| html { | |
| font-size: 2rem; | |
| /* font-family: Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif; */ | |
| font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif; | |
| } | |
| @keyframes rainbow_animation { | |
| 0% { | |
| background-position: 0% | |
| } |
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
| (function() { | |
| function getSelectionText() { | |
| var text = ""; | |
| if (window.getSelection) { | |
| text = window.getSelection().toString(); | |
| } else if (document.selection && document.selection.type != "Control") { | |
| text = document.selection.createRange().text; | |
| } | |
| return text; | |
| } |
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
| { | |
| "hello world": [[0, 10], [20, 30], [50, 60], [90, 10], [10, 90], [0, 10]], | |
| "boogety boo": [[0, 50], [10, 30], [50, 60], [90, 10], [50, 90], [0, 10], [0, 20], [10, 30], [20, 40], [0, 50]] | |
| } |
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 sys | |
| import collections | |
| import random | |
| N_TRIALS = 100000 | |
| FLAVORS = ['Strawberry', 'Orange', 'Lemon', 'Apple', 'Grape'] | |
| def chisquared(values): | |
| mean = sum(values) / float(len(values)) |
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 random | |
| import collections | |
| n = 100 | |
| p_attend = 0.5 | |
| p_listen = 0.5 | |
| n_to_remember = 2 | |
| people = list(range(n)) | |
| random.shuffle(people) |
NewerOlder