Skip to content

Instantly share code, notes, and snippets.

@yunntan
yunntan / CommandCenterSortableGrid.tsx
Created January 20, 2025 02:12
Typical react component
import React from 'react';
import { TCommandCenterDndItem } from '../CommandCenter';
import {
DndContext,
DragEndEvent,
DragOverlay,
DragStartEvent,
MouseSensor,
TouchSensor,
import React from 'react'
import ReactDOM from 'react-dom'
import RecipientsBadge from './RecipientsBadge'
type RecipientsDisplayProps = {
recipients: string[]
}
/**
@yunntan
yunntan / ffmpeg.md
Last active October 23, 2020 08:37

Extract frames as JPGs:

ffmpeg -i video.mp4 -r 24 -f image2 img/img_%5d.jpg

-r: frame rate

Extract frame at specific time:

ffmpeg -i video.mp4 -ss 00:00:01.000 -f image2 -vframes 1 myImage.jpg