Skip to content

Instantly share code, notes, and snippets.

@gxvxc
gxvxc / material design symbol list.ts
Last active February 1, 2024 10:32
Material Design You (3) icon symbol list
type MaterialDesignIconSymbol =
| "10k"
| "10k_outlined"
| "10k_rounded"
| "10k_sharp"
| "10mp"
| "10mp_outlined"
| "10mp_rounded"
| "10mp_sharp"
| "11mp"
@gxvxc
gxvxc / blurhashDataURL.ts
Last active April 13, 2023 10:20 — forked from mattiaz9/blurhashDataURL.ts
Convert blurhash to a base64 DataURL string (no canvas or node-canvas)
import { decode } from "blurhash"
const cache: Record<string, string> = {}
export function blurHashToDataURL(hash: string | undefined): string | undefined {
if (!hash) return undefined
const cachedBlurDataURL = cache[hash]
if(cachedBlurDataURL) {