Skip to content

Instantly share code, notes, and snippets.

@100ideas
100ideas / README.md
Last active December 3, 2023 17:37 — forked from glasslion/vtt2text.py
This script convert youtube subtitle file(vtt) to plain text.

how to extract subtitles or closed caption from youtube url

Hello, I personally was looking for a simple minimal script that performed just this function: parsing vtt, discarding timecodes, merging chronologically close lines into a larger block, and outputting the result in a human-readable txt file. Just wanted to say that in my use case I prefer the way it merges multiple lines into a less-fine-grained time code.

@glasslion, thanks a lot for sharing this script!

vtt2text.py is a nice little script by glasslion I just found that seems to do what I am looking for - convert subtitle file, even closed-captioning "roll-up" style webvtt formats like what I have, into human-friendly full-page transcript.

@100ideas
100ideas / mobx_store.ts
Created October 18, 2019 05:59 — forked from faiyaz26/mobx_store.ts
MobX depedency tree
import {action, computed, observable, runInAction} from 'mobx';
import Loadable from './loadable';
export default class Loadable<T> {
// our state entity class
public static create<T>(val?: T) {
return new Loadable<T>(val);
}
@100ideas
100ideas / ReadingListCatcher.ipynb
Last active March 21, 2018 08:04 — forked from ttscoff/ReadingListCatcher.py
A script for exporting Safari Reading List items to Markdown files and Pinboard bookmarks - with jupyter notebook playground version (look for python3 comment toggles)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@100ideas
100ideas / README.md
Created September 30, 2016 04:56 — forked from nitaku/README.md
Graph editing with persistence

Same as the previous example, but with client-side persistence, thanks to the IndexedDB APIs (see this other example).

Try to modify the graph, then reload the page to load it again.

The graph is automatically saved on each modification of its structure, and also every second with a setInterval, to store even the changes made to nodes' position by the force layout.

@100ideas
100ideas / hexo_gitbook.sh
Created February 29, 2016 01:26 — forked from TommyLau/hexo_gitbook.sh
Generate GitBook project for Hexo
#!/bin/sh
# Setup the directory name
DIRNAME=GitBook
# Remove the old GitBook directory
rm -fr $DIRNAME
mkdir $DIRNAME
# Generate the README.md
cat <<-EOF >$DIRNAME/README.md
@100ideas
100ideas / index.html
Last active December 10, 2015 22:08 — forked from sam1vp/index.html
prototype of @brewlabsf sensor dashboard
<!DOCTYPE html>
<head>
<!-- <link href="../src/nv.d3.css" rel="stylesheet" type="text/css"> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<style>
<!DOCTYPE html>