Skip to content

Instantly share code, notes, and snippets.

View bouiboui's full-sized avatar
🌍
cod3.net

Julien bouiboui

🌍
cod3.net
View GitHub Profile
@bouiboui
bouiboui / removeduplicateframes.sh
Created February 18, 2020 17:31 — forked from danielmahal/removeduplicateframes.sh
Remove duplicate frames from video with ffmpeg and mpdecimate
ffmpeg -i input.mov -vf mpdecimate,setpts=N/FRAME_RATE/TB output.mov
@bouiboui
bouiboui / htmlToAST.ts
Created March 19, 2021 09:16 — forked from halfnibble/htmlToAST.js
GraphCMS HTML to RichTextAST (TypeScript version)
import {jsx} from "slate-hyperscript";
import {JSDOM} from "jsdom";
const DOMParser = new JSDOM().window.DOMParser
const htmlToAST = (html: string) => {
const parsed = new DOMParser().parseFromString(html, 'text/html')
return deserialize(parsed.body)
}