Skip to content

Instantly share code, notes, and snippets.

View Nemo64's full-sized avatar

Marco Pfeiffer Nemo64

View GitHub Profile
@Nemo64
Nemo64 / only-h264.sh
Created December 31, 2022 16:30
example ffmpeg.wasm-core configure scripts for different use cases
#!/bin/bash
# this results in a wasm file that is
# 5.2 mb (1.8 mb gzip)
set -euo pipefail
source $(dirname $0)/var.sh
FLAGS=(
"${FFMPEG_CONFIG_FLAGS_BASE[@]}"
@Nemo64
Nemo64 / sortable_select.tsx
Created July 14, 2023 17:29
sortable tags in ant.design Select mode="multiple"
function SortableSelect<ValueType extends Array<unknown>, OptionType>(
props: SelectProps<ValueType, OptionType>
) {
return (
<DndProvider backend={HTML5Backend}>
<Select<ValueType, OptionType>
{...props}
tagRender={({ label, ...tagProps }) => (
<DraggableTag
{...tagProps}