Skip to content

Instantly share code, notes, and snippets.

@tsangpo
tsangpo / preact-transition-router.tsx
Created January 18, 2020 07:51
Example of preact TransitionRouter
import { h } from 'preact';
import Router from 'preact-router';
import TransitionGroup from 'preact-transition-group';
export default class TransitionRouter extends Router {
render(props, state) {
return (
<TransitionGroup component="div">
{super.render(props, state)}
</TransitionGroup>
@tsangpo
tsangpo / README.md
Created December 17, 2019 06:14 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@tsangpo
tsangpo / schema.json
Created November 10, 2019 07:41
webcent
{
"$ref": "#/definitions/Root",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"Root": {
"additionalProperties": false,
"properties": {
"models": {
"additionalProperties": {
"additionalProperties": false,
@tsangpo
tsangpo / shell
Last active November 8, 2019 13:37
ssh config example
> ssh-keygen