Skip to content

Instantly share code, notes, and snippets.

@sondreb
sondreb / jwk-39.ts
Created September 7, 2024 21:59 — forked from bnonni/jwk-39.ts
import { base64url } from '@scure/base';
import { entropyToMnemonic } from '@scure/bip39';
import { wordlist } from '@scure/bip39/wordlists/english';
// Function to convert Base64URL string to Uint8Array
function base64UrlToUint8Array(b64url: string): Uint8Array {
return base64url.decode(b64url + '='.repeat((4 - (b64url.length % 4)) % 4));
}
// Function to convert the private key to a BIP39 mnemonic
@sondreb
sondreb / deepmind-css-guide.md
Last active August 29, 2015 14:26 — forked from bobbygrace/trello-css-guide.md
Deepmind CSS Guide