Skip to content

Instantly share code, notes, and snippets.

View SeanCassiere's full-sized avatar
🥰
Typescript

Sean Cassiere SeanCassiere

🥰
Typescript
View GitHub Profile
"use client"
import { ChevronLeft, ChevronRight } from "lucide-react"
import * as React from "react"
import { DayPicker } from "react-day-picker"
import { buttonVariants } from "@/components/ui/button"
import { cn } from "@/lib/utils"
export type CalendarProps = React.ComponentProps<typeof DayPicker>
@JustSteveKing
JustSteveKing / tailwind_light.yaml
Created September 5, 2022 19:18
TailwindCSS Light Warp Theme
accent: "#818cf8"
foreground: "#0f172a"
background: "#f8fafc"
details: "lighter"
terminal_colors:
normal:
red: "#f87171"
yellow: "#facc15"
black: "#0f172a"
cyan: "#22d3ee"
@jakub-g
jakub-g / async-defer-module.md
Last active November 29, 2025 12:46
async scripts, defer scripts, module scripts: explainer, comparison, and gotchas

<script> async, defer, async defer, module, nomodule, src, inline - the cheat sheet

With the addition of ES modules, there's now no fewer than 24 ways to load your JS code: (inline|not inline) x (defer|no defer) x (async|no async) x (type=text/javascript | type=module | nomodule) -- and each of them is subtly different.

This document is a comparison of various ways the <script> tags in HTML are processed depending on the attributes set.

If you ever wondered when to use inline <script async type="module"> and when <script nomodule defer src="...">, you're in the good place!

Note that this article is about <script>s inserted in the HTML; the behavior of <script>s inserted at runtime is slightly different - see Deep dive into the murky waters of script loading by Jake Archibald (2013)

@AnsonT
AnsonT / index.js
Last active September 18, 2023 17:48
Using Node-Jose to for RSA jwt with key store
import { JWE, JWK, JWS } from 'node-jose'
import fs from 'fs'
import { join } from 'path'
import jwkToPem from 'jwk-to-pem'
import jwt from 'jsonwebtoken'
const certDir = '.cert'
const keystoreFile = join(certDir, 'keystore.json')
const raw = {
iss: 'test',