Skip to content

Instantly share code, notes, and snippets.

View nullobject's full-sized avatar

Joshua Bassett nullobject

View GitHub Profile
ffmpeg -y -f alsa -thread_queue_size 1024 -i hw:2 -f v4l2 -thread_queue_size 1024 -i /dev/video-hdmi-capture -c:v libx264 -pix_fmt yuv420p -r 60 -c:a aac -ac 2 -ar 48000 lol.mp4
@nullobject
nullobject / List.test.tsx
Created February 29, 2024 22:42
Mock IntersectionObserver
import { act, render, screen } from "@testing-library/react"
import { List } from "./List"
type IntersectFn = (entries: any[]) => void
function mockIntersectionObserver(): [
jest.MockedObject<IntersectionObserver>,
IntersectFn
] {
let intersectionObserverCallback: IntersectFn = () => {}