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 python3 | |
| """ | |
| Sum Hacker News post karma (points) by domain for all story posts in a given year. | |
| Data source: Hacker News Algolia Search API | |
| https://hn.algolia.com/api | |
| By default, common organizational domains (news sites, major platforms like GitHub, | |
| Twitter, YouTube, etc.) are excluded to focus on individual/personal blogs. |
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
| """ | |
| safetykit is a mini-library to demonstrate safety features designed for use in human-in-the-loop scripts. | |
| Running scripts in production without safetykit features is like driving a car without a seatbelt. | |
| Fasten your seatbelt, put on your helmet. | |
| """ | |
| import argparse | |
| import hashlib |
OlderNewer