Intro
Feed
A collection of short notes, interesting links, and the occasional long form post.
Items
-
The Best Tacit Knowledge Videos on Every Subject
www.lesswrong.com
-
- Published
…if anything I want to become what I’ve called an information trillionaire, I’m not going to make that but its a good aspiration to have, just collect more information and be an information trillionaire…
-
Tennis Player Actions Dataset for Human Pose Estimation
data.mendeley.com
-
- Published
canScroll() { return false } wasn’t working on my custom shape. Did this instead.
const TableComponent = () => { const containerRef = useRef<HTMLDivElement>(null); useEffect(() => { const containerElement = containerRef.current; const handleWheel = (event: WheelEvent) => { const isOverCardShape = containerElement?.contains(event.target as Node); // to determine if the event should be prevented if (isOverCardShape) { // event.preventDefault(); event.stopPropagation(); } }; containerElement?.addEventListener("wheel", handleWheel, { passive: false, }); return () => { containerElement?.removeEventListener("wheel", handleWheel); }; }, [containerRef]); ... -
An Autumn Afternoon. A 1962 Japanese drama film directed by Yasujirō Ozu.
en.wikipedia.org
-
- Published
import { DayPicker } from "react-day-picker"; import "react-day-picker/style.css"; function MyDatePicker() { const [selected, setSelected] = useState<Date>(); return ( <DayPicker mode="single" selected={selected} onSelect={setSelected} footer={ selected ? `Selected: ${selected.toLocaleDateString()}` : "Pick a day." } /> ); }DayPicker + Radix UI Popover
"use client"; import React from "react"; import { useState } from "react"; import { DayPicker } from "react-day-picker"; import * as Popover from "@radix-ui/react-popover"; import { format } from "date-fns"; import "react-day-picker/style.css"; import { useRouter } from "next/navigation"; export function MyDatePicker({ displayDate }: { displayDate: string }) { const router = useRouter(); const [selected, setSelected] = useState<Date>(); const [open, setOpen] = useState(false); const handleDateSelect = (date: Date) => { setSelected(date); const formattedDate = format(date, "yyyy-MM-dd"); router.push(`/schedule?date=${formattedDate}`); setOpen(false); }; return ( <Popover.Root open={open} onOpenChange={setOpen}> <Popover.Trigger asChild> <button className="display-date">{displayDate}</button> </Popover.Trigger> <Popover.Content className="PopoverContent"> <DayPicker mode="single" selected={selected} onDayClick={handleDateSelect} footer={ selected ? `Selected: ${selected.toLocaleDateString()}` : "Pick a day." } /> </Popover.Content> </Popover.Root> ); } -
Modern date range picker component for React using Tailwind 3 and dayjs.
github.com
-
Part II: Apocalypse Now? Peter Thiel on Ancient Prophecies and Modern Tech
www.youtube.com
-
The Curse of Kafka
archive.is
-
3D force-directed graph component using ThreeJS/WebGL
vasturiano.github.io
-
Travels
www.michaelcrichton.com
-
Reading Notes on “Lost Time: Lectures on Proust in a Soviet Prison Camp”
nabeelqu.substack.com
-
- Published
Astro + Temporal try
This code demonstrates how to initiate a workflow in Astro using the Temporal client
-
Tools for Thought Rocks: October 2022 - Pol Baladas, Paul Shen
www.youtube.com
-
Adaptive fictions
www.thebeliever.net
-
Calendar Widget Interaction
ui.lndev.me
-
A markdown-like journal language for plainly writing logs
timeline.markwhen.com
-
Authenticating users in Astro with Better Auth: A Step-by-Step Guide
www.launchfa.st
Looks easy and promising
--- if (!Astro.locals.user?.id) return Astro.redirect('/signin') --- <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> </head> <body> {JSON.stringify(Astro.locals.user)} <button id="signOutButton">Sign Out</button> <script> import { authClient } from '@/auth-client' document.getElementById('signOutButton')?.addEventListener('click', async () => { await authClient.signOut() window.location.href = '/signin' }) </script> </body> </html> -
Adaptive dotted background pattern
codepen.io
html { background-image: radial-gradient(circle at center, transparent, Canvas), radial-gradient( circle at center, color-mix(in oklch, Canvastext 33%, Canvas) 0.8px, transparent 1.3px ); background-size: 200px 200px, 40px 40px; background-repeat: round, space; } -
A unified theory of fucks
aworkinglibrary.com
Good work is the art of giving a fuck about the living.