Skip to content

Instantly share code, notes, and snippets.

View willfaught's full-sized avatar

Will Faught willfaught

View GitHub Profile
@willfaught
willfaught / wordpress-to-markdown.md
Last active December 24, 2022 01:28
Convert Wordpress.com exported data to Markdown with front matter

If you want to convert data exported from Wordpress.com into Markdown with front matter, you can use this program.

With XML data like this:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:excerpt="http://wordpress.org/export/1.2/excerpt/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wp="http://wordpress.org/export/1.2/">
  <!-- ... -->
  <item>
    <title><![CDATA[My Title]]></title>
@willfaught
willfaught / go-generics.md
Last active May 3, 2022 20:33
Generics for Go

(The most current version is at https://github.com/willfaught/go-generics.)

Generics for Go

(Obviously for Go 1.17.)

Why you might find this approach interesting:

  • Type variable declarations are implicit
  • Type arguments for functions are implicit