Skip to content

Instantly share code, notes, and snippets.

View bobbicodes's full-sized avatar
💭
Moved to bobbicodes on Codeberg

Bobbi Towers bobbicodes

💭
Moved to bobbicodes on Codeberg
View GitHub Profile
@bobbicodes
bobbicodes / insta.json
Created November 13, 2022 18:24
Transcript: Mark Engelberg - Instaparse
[[{"text": "good morning I'm mark Engelbert welcome", "start": 0.03, "duration": 4.88}, {"text": "to closure West it's exciting to be here", "start": 2.28, "duration": 6.06}, {"text": "it's the first talk of the first morning", "start": 4.91, "duration": 5.71}, {"text": "and I feel like I should be hijacking", "start": 8.34, "duration": 4.29}, {"text": "this time slot to give a keynote and set", "start": 10.62, "duration": 4.13}, {"text": "the future of closures something but", "start": 12.63, "duration": 6.409}, {"text": "we're here to talk about insta parse", "start": 14.75, "duration": 4.289}, {"text": "let's begin with a little warm-up it's", "start": 19.91, "duration": 4.51}, {"text": "the morning get to get the brains going", "start": 22.65, "duration": 8.039}, {"text": "so what's this any it's a map it's a map", "start": 24.42, "duration": 9.6}, {"text": "its closure data right this is the Eden", "start": 30.689, "duration": 5.911}, {"text": "format we all know and love and one of", "start": 34.02, "du
@bobbicodes
bobbicodes / monads.json
Created November 13, 2022 18:24
Transcript: Monads in Clojure
[[{"text": "now the first topic that um i'm gonna", "start": 0.0, "duration": 4.96}, {"text": "talk about today is probably using", "start": 2.639, "duration": 5.12}, {"text": "closure to do functional programming so", "start": 4.96, "duration": 3.84}, {"text": "when we talk about functional", "start": 7.759, "duration": 2.641}, {"text": "programming most people will", "start": 8.8, "duration": 4.24}, {"text": "say oh monets let's talk about how to", "start": 10.4, "duration": 4.0}, {"text": "use closure to", "start": 13.04, "duration": 5.04}, {"text": "write monet and then it's a", "start": 14.4, "duration": 6.16}, {"text": "pretty useful skill actually i'll say", "start": 18.08, "duration": 3.359}, {"text": "that it's like", "start": 20.56, "duration": 4.639}, {"text": "a software design pattern", "start": 21.439, "duration": 7.041}, {"text": "except that it's very powerful let's", "start": 25.199, "duration": 6.641}, {"text": "get started", "start": 28.48, "duration": 3.36}, {"text": "the operating system
@bobbicodes
bobbicodes / monads.json
Created November 13, 2022 18:23
Transcript: Monads in Clojure
[[{"text": "now the first topic that um i'm gonna", "start": 0.0, "duration": 4.96}, {"text": "talk about today is probably using", "start": 2.639, "duration": 5.12}, {"text": "closure to do functional programming so", "start": 4.96, "duration": 3.84}, {"text": "when we talk about functional", "start": 7.759, "duration": 2.641}, {"text": "programming most people will", "start": 8.8, "duration": 4.24}, {"text": "say oh monets let's talk about how to", "start": 10.4, "duration": 4.0}, {"text": "use closure to", "start": 13.04, "duration": 5.04}, {"text": "write monet and then it's a", "start": 14.4, "duration": 6.16}, {"text": "pretty useful skill actually i'll say", "start": 18.08, "duration": 3.359}, {"text": "that it's like", "start": 20.56, "duration": 4.639}, {"text": "a software design pattern", "start": 21.439, "duration": 7.041}, {"text": "except that it's very powerful let's", "start": 25.199, "duration": 6.641}, {"text": "get started", "start": 28.48, "duration": 3.36}, {"text": "the operating system
@bobbicodes
bobbicodes / insta.json
Created November 13, 2022 18:22
Transcript: Mark Engelberg - Instaparse
[[{"text": "good morning I'm mark Engelbert welcome", "start": 0.03, "duration": 4.88}, {"text": "to closure West it's exciting to be here", "start": 2.28, "duration": 6.06}, {"text": "it's the first talk of the first morning", "start": 4.91, "duration": 5.71}, {"text": "and I feel like I should be hijacking", "start": 8.34, "duration": 4.29}, {"text": "this time slot to give a keynote and set", "start": 10.62, "duration": 4.13}, {"text": "the future of closures something but", "start": 12.63, "duration": 6.409}, {"text": "we're here to talk about insta parse", "start": 14.75, "duration": 4.289}, {"text": "let's begin with a little warm-up it's", "start": 19.91, "duration": 4.51}, {"text": "the morning get to get the brains going", "start": 22.65, "duration": 8.039}, {"text": "so what's this any it's a map it's a map", "start": 24.42, "duration": 9.6}, {"text": "its closure data right this is the Eden", "start": 30.689, "duration": 5.911}, {"text": "format we all know and love and one of", "start": 34.02, "du
@bobbicodes
bobbicodes / monads.json
Last active November 13, 2022 19:55
Transcript: YOW! 2013 Philip Wadler - The First Monad Tutorial #YOW (fetched using https://github.com/jdepoix/youtube-transcript-api)
[[{"text": "so this is the first monad tutorial", "start": 0.03, "duration": 8.34}, {"text": "these days there are lots of monad", "start": 3.54, "duration": 9.509}, {"text": "tutorials for Scala or Perl or I think", "start": 8.37, "duration": 7.229}, {"text": "that's channel 9 at Microsoft in the", "start": 13.049, "duration": 5.48}, {"text": "bottom corner and one called yet another", "start": 15.599, "duration": 6.151}, {"text": "presentation on loan ads and they have", "start": 18.529, "duration": 5.621}, {"text": "all sorts of complicated diagrams in", "start": 21.75, "duration": 5.15}, {"text": "them so you can point with this thing", "start": 24.15, "duration": 5.67}, {"text": "going what have we got here", "start": 26.9, "duration": 6.79}, {"text": "this is plumbing this is spacesuit this", "start": 29.82, "duration": 8.43}, {"text": "is burritos and this is funny boxes with", "start": 33.69, "duration": 8.04}, {"text": "balls in them but but remember that", "start": 38.25, "duration": 8.149}, {"text"
@bobbicodes
bobbicodes / insta.json
Created November 13, 2022 18:19
Transcript: Mark Engelberg - Instaparse
[[{"text": "good morning I'm mark Engelbert welcome", "start": 0.03, "duration": 4.88}, {"text": "to closure West it's exciting to be here", "start": 2.28, "duration": 6.06}, {"text": "it's the first talk of the first morning", "start": 4.91, "duration": 5.71}, {"text": "and I feel like I should be hijacking", "start": 8.34, "duration": 4.29}, {"text": "this time slot to give a keynote and set", "start": 10.62, "duration": 4.13}, {"text": "the future of closures something but", "start": 12.63, "duration": 6.409}, {"text": "we're here to talk about insta parse", "start": 14.75, "duration": 4.289}, {"text": "let's begin with a little warm-up it's", "start": 19.91, "duration": 4.51}, {"text": "the morning get to get the brains going", "start": 22.65, "duration": 8.039}, {"text": "so what's this any it's a map it's a map", "start": 24.42, "duration": 9.6}, {"text": "its closure data right this is the Eden", "start": 30.689, "duration": 5.911}, {"text": "format we all know and love and one of", "start": 34.02, "du
@bobbicodes
bobbicodes / monads.json
Created November 13, 2022 18:19
Transcript: YOW! 2013 Philip Wadler - The First Monad Tutorial #YOW
[[{"text": "so this is the first monad tutorial", "start": 0.03, "duration": 8.34}, {"text": "these days there are lots of monad", "start": 3.54, "duration": 9.509}, {"text": "tutorials for Scala or Perl or I think", "start": 8.37, "duration": 7.229}, {"text": "that's channel 9 at Microsoft in the", "start": 13.049, "duration": 5.48}, {"text": "bottom corner and one called yet another", "start": 15.599, "duration": 6.151}, {"text": "presentation on loan ads and they have", "start": 18.529, "duration": 5.621}, {"text": "all sorts of complicated diagrams in", "start": 21.75, "duration": 5.15}, {"text": "them so you can point with this thing", "start": 24.15, "duration": 5.67}, {"text": "going what have we got here", "start": 26.9, "duration": 6.79}, {"text": "this is plumbing this is spacesuit this", "start": 29.82, "duration": 8.43}, {"text": "is burritos and this is funny boxes with", "start": 33.69, "duration": 8.04}, {"text": "balls in them but but remember that", "start": 38.25, "duration": 8.149}, {"text"
@bobbicodes
bobbicodes / monads.json
Created November 13, 2022 18:17
Transcript: YOW! 2013 Philip Wadler - The First Monad Tutorial #YOW
[[{"text": "so this is the first monad tutorial", "start": 0.03, "duration": 8.34}, {"text": "these days there are lots of monad", "start": 3.54, "duration": 9.509}, {"text": "tutorials for Scala or Perl or I think", "start": 8.37, "duration": 7.229}, {"text": "that's channel 9 at Microsoft in the", "start": 13.049, "duration": 5.48}, {"text": "bottom corner and one called yet another", "start": 15.599, "duration": 6.151}, {"text": "presentation on loan ads and they have", "start": 18.529, "duration": 5.621}, {"text": "all sorts of complicated diagrams in", "start": 21.75, "duration": 5.15}, {"text": "them so you can point with this thing", "start": 24.15, "duration": 5.67}, {"text": "going what have we got here", "start": 26.9, "duration": 6.79}, {"text": "this is plumbing this is spacesuit this", "start": 29.82, "duration": 8.43}, {"text": "is burritos and this is funny boxes with", "start": 33.69, "duration": 8.04}, {"text": "balls in them but but remember that", "start": 38.25, "duration": 8.149}, {"text"
@bobbicodes
bobbicodes / silence.clj
Last active July 12, 2022 18:40
Babashka script to trim silence from video with ffmpeg and moviepy
(ns silence
(:require [clojure.string :as str]
[clojure.java.shell :as shell]
[babashka.process :as p]))
(defn silences-output [file]
(:err
(shell/sh
"ffmpeg" "-hide_banner" "-vn" "-i"
file "-af" "silencedetect=n=-50dB:d=1" "-f" "null" "-")))
@bobbicodes
bobbicodes / trim-silence.py
Created July 11, 2022 20:49
Trim silence from video with moviepy
#!/usr/bin/env python
import sys
import subprocess
import os
import shutil
from moviepy.editor import VideoFileClip, concatenate_videoclips
# Input file path
file_in = sys.argv[1]