I hereby claim:
- I am BYK on github.
- I am byk (https://keybase.io/byk) on keybase.
- I have a public key whose fingerprint is 70DB C4D9 5802 6B46 032E AB75 A17E E621 C962 DE46
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Blogger's backup file to WordPress' WXR converter. | |
| # | |
| # Only tested with posts and comments, and NOT with pages. | |
| # May not be efficient for huge blogs since the script keep | |
| # all content in the memory during conversion. | |
| # | |
| # Released as public domain. | |
| # | |
| # Please note that I converted the labels in Blogspot | |
| # as tags in WordPress. I also hardcoded two categories for the |
| let locks = []; | |
| const fn = async () => { | |
| let resolve; | |
| locks.push(new Promise(r => (resolve=r))); | |
| let lock; | |
| while (locks.length > 1 && (lock = locks.shift())) | |
| await lock; | |
| console.log(new Date()); | |
| setTimeout(resolve, 1000); |
| { | |
| "environment": "development", | |
| "event_id": "ba0b3ec25fc24945b25f8e8cfdb9ca7a", | |
| "platform": "python", | |
| "profile": { | |
| "frames": [ | |
| { | |
| "abs_path": "/home/byk/Projects/spotlight-django/.venv/lib/python3.12/site-packages/django/template/loaders/filesystem.py", | |
| "module": "django.template.loaders.filesystem", | |
| "filename": "django/template/loaders/filesystem.py", |
| import type { Root, Heading } from "mdast"; | |
| import rehypeParse from "rehype-parse"; | |
| import rehypeRemark from "rehype-remark"; | |
| import remarkStringify from "remark-stringify"; | |
| import { unified } from "unified"; | |
| function extractMDSection({ section }: { section?: RegExp }) { | |
| return (tree: Root) => { | |
| const headingIdx = tree.children.findIndex((node) => { | |
| return ( |
| # uv pip install --system winrt-Windows.Foundation winrt-Windows.Devices winrt-Windows.Devices.Sensors | |
| import winrt.windows.devices.sensors as ws | |
| lightSensor = ws.LightSensor.get_default() | |
| while True: | |
| print(lightSensor.get_current_reading().illuminance_in_lux) | |
| sleep(.5) |