Skip to content

Instantly share code, notes, and snippets.

@florentroques
florentroques / vtt2text.py
Last active April 30, 2024 12:53 — forked from glasslion/vtt2text.py
This script converts youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
kspsha
06119-67d9c
c68a6-d3c5d
1ca41-476ea
95a5d-ad53b
54f49-fea30
91fee-edfdd
52713-9d4c7
085e9-c940d
9c9f4-b3e3f
@florentroques
florentroques / Full Stack JavaScript.md
Last active November 21, 2021 07:30
Learn Full Stack JavaScript Web Development for FREE using resources like YouTube, Udacity and NodeSchool
# 1. Install Python
# Linux: apt-get install python3 (python should already be installed)
# MacOS: brew install python3 (check homebrew if you do not have it yet)
# Windows: download Python from Microsoft Store (you can try with chocolatey package manager also)
# 2. Install PIP, Python package manager
# Linux: apt-get install pip3
# MacOS: brew install pip3 (should be installed with Python3 normally, run it in any case)
# Windows:
# 3. Install script dependencies
# pip3 install pygsheets pandas
@florentroques
florentroques / ffmpeg-install.md
Last active April 27, 2020 15:31
Install FFMPEG with all flags on OS X with HomeBrew
brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
@florentroques
florentroques / encoding-video.md
Created July 12, 2018 14:27 — forked from Vestride/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus

##Handle width and max-width To oblige elements to fit parent container, put max-width:100%

img, embed, object, video {
  max-width:100%;
}

max-width overrides width and forces an element to fix a container

https://medium.com/@derrickburns/building-a-modern-scalable-backend-modernizing-monolithic-applications-15fc3b8101fa#.eod0571mn

Building A Modern, Scalable Backend: Modernizing Monolithic ApplicationsOne year ago my consultancy was hired to construct a modern backend for a travel site that serves millions of unique visitors each month after the previous team had failed. This is the story of our success.The ProblemIf your business is based on content, then you must solve two separate problems: 1) how to create new content and 2) how to serve content via your web site, via your mobile applications, and perhaps via third parties. If your business has tenure, then your content creation suite