Skip to content

Instantly share code, notes, and snippets.

View rkiik's full-sized avatar

Kristofer Robin Kiik rkiik

View GitHub Profile
@jordienr
jordienr / api.ts
Created January 15, 2024 12:48
Fully typed API client with zod and fetch
import { z } from "zod";
const Post = z.object({
id: z.string(),
slug: z.string(),
content: z.string(),
title: z.string()
})
export function createAPIClient() {
@jordienr
jordienr / Gradient.js
Created September 12, 2021 00:23
Stripe Mesh Gradient WebGL
/*
* Stripe WebGl Gradient Animation
* All Credits to Stripe.com
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and
* commented out for now.
* https://kevinhufnagl.com
*/