Skip to content

Instantly share code, notes, and snippets.

@martinthomson
martinthomson / README
Created December 8, 2021 05:59
Test vector script for QUICv2
Run this with an argument of the version number (in hex).
This is a copy of what I used for QUICv1.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@martinthomson
martinthomson / md.reg
Created August 5, 2022 06:54
Enable text/markdown media type for .md files in Windows
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.md]
"Content Type"="text/markdown"
@="md_auto_file"
"PerceivedType"="text"
@martinthomson
martinthomson / _topic-classifier.md
Last active August 9, 2022 02:17
Poking at the Topics Classifier

Poking at the Topics Classifier

I just spent some time poking at the Topics classifier (available at chrome://topics-internals/; Model version: 2206021246).

With the complete list of 349 topics in topics.txt (source), I generated some names based on the topic strings. This just takes the last component of the topic, and hyphenates it, as follows:

sed -e 's/&/ and /g;s/  */-/g;s/[,()]//g;s/.*[ \/]-*\([-a-zA-Z]*\)$/\1.com/' topics.txt