Let
To eliminate
The nonlinear term
#!/bin/bash | |
#Arguments: URL, Starting Timestamp -5 seconds, Ending Timestamp, video file name | |
set -x; | |
readarray -t urls <<< "$(yt-dlp -f bestvideo[ext=mp4][vcodec^=avc1]+140 --youtube-skip-dash-manifest -g "$1")" | |
ffmpeg -ss $2 -to $3 -i "${urls[0]}" -ss $2 -to $3 -i "${urls[1]}" -ss 10 -map 0:v -map 1:a -c:v copy -c:a copy "${4}.mp4" |
Let
To eliminate
The nonlinear term
import subprocess | |
import os | |
import re | |
def make_chapters_metadata(list_mp4: list): | |
print(f"Making metadata source file") | |
chapters = {} | |
for single_mp4 in list_mp4: | |
number = single_mp4.removesuffix(".m4a") |
https://hackage.haskell.org/package/containers-0.6.6/docs/src/Utils.Containers.Internal.State.html
newtype State s a = State {runState :: s -> (s, a)}
instance Functor (State s) where
fmap = liftA
instance Monad (State s) where
{-# INLINE return #-}
{-# INLINE (>>=) #-}
Skipping corners, not verifying correctness is necessary for productivity. There are multiple levels of correctness. Rubbish > Does Something > Reasonable > Justified > Correct > Omniscient optimal. The level of correctness needs to be observable.
Most of the time you programme more specific results than you actually need. Don't do this
Writing correct code the first time is economically unviable.
Concepts
struct observable {
void bind(observer);
};
struct observer {
template<class T>
void next(T);
};