Skip to content

Instantly share code, notes, and snippets.

View antonmihaylov's full-sized avatar

Anton Mihaylov antonmihaylov

View GitHub Profile
import { EventEmitter } from "eventemitter3";
import type { MP4ArrayBuffer, MP4File, MP4Info, MP4Sample } from "mp4box";
import * as MP4Box from "mp4box";
import type { MediaFile } from "../../models.js";
import type { IDisposable } from "../abstract/hooks.js";
import type {
VideoMetadata,
} from "../abstract/pipeline.js";
import type { MediaFileObjectUrlProvider } from "../utils/ObjectUrlProvider.js";
@antonmihaylov
antonmihaylov / docker-compose.yaml
Created November 20, 2022 10:02
Docker Compose + Traefik proxy and certificate management
version: "3.8"
# Before you run the containers add the network using
# docker network create main
networks:
main:
external: true
volumes:
acme-certs:
@antonmihaylov
antonmihaylov / WithClass.tsx
Created July 11, 2022 08:58
Tailwind component with variants wrapper
import type { ClassValue } from 'clsx'
import clsx from 'clsx'
import defaults from 'lodash/fp/defaults'
import entries from 'lodash/fp/entries'
import flow from 'lodash/fp/flow'
import isBoolean from 'lodash/fp/isBoolean'
import isFunction from 'lodash/fp/isFunction'
import isNumber from 'lodash/fp/isNumber'
import isObject from 'lodash/fp/isObject'
import isString from 'lodash/fp/isString'