Skip to content

Instantly share code, notes, and snippets.

View Sacramentix's full-sized avatar
💭
Nantes!

Sacramentix Sacramentix

💭
Nantes!
View GitHub Profile
@kousu
kousu / README.md
Last active April 14, 2024 00:55
Using jose-util with ed25519 (aka EdDSA), PEM-formatted, keys

Using jose-util with ed25519 (aka EdDSA), PEM-formatted, keys

Using go-jose takes a bit of a knack. And it turns out there's a snag if you want to use the latest and greatest crypto.

I installed jose-util from the latest git version:

$ pwd
/Users/kousu/src/go-jose
anaesthetic-mac:go-jose kousu$ git log HEAD~1..HEAD
@marcveens
marcveens / NetlifyCmsConfig.ts
Last active February 28, 2023 12:09
Typescript used to generate a Netlify CMS config.yml
// See https://www.marcveens.nl/netlify-cms-generate-config-yml
// https://www.netlifycms.org/docs/configuration-options/
type PublishMode = 'simple' | 'editorial_workflow';
type ExtensionType = 'yml' | 'yaml' | 'toml' | 'json' | 'md' | 'markdown' | 'html';
type FormatType = 'yml' | 'yaml' | 'toml' | 'json' | 'frontmatter' | 'yaml-frontmatter' | 'toml-frontmatter' | 'json-frontmatter';
type WidgetType = 'boolean' | 'date' | 'datetime' | 'file' | 'hidden' | 'image'
| 'list' | 'map' | 'markdown' | 'number' | 'object' | 'relation'
| 'select' | 'string' | 'text' | string;
type MapType = 'Point' | 'LineString' | 'Polygon';
@codl
codl / address-forms-suck.md
Last active July 19, 2024 12:05
Address forms suck

Address forms suck

It is an address form for illustration

I was looking at a package I got the other day and noticed the order of the address was wrong.

Addresses have very different formats in each country, yet every single website still asks me for my “State/Region”. This field is completely useless here in France, and many other countries. Sometimes it's a text box, and I don't know if I can leave it empty or if I have to input “N/A” or something else that will look stupid once printed on the package. Sometimes it's a drop-down list and I have to hunt down either the “Non-US” option, or maybe it was filled with French regions or French departments once I picked my country.