ffmpeg -i in.mp4 -ss 00:00 [-to 5:0] -c copy -map 0 out.mp4
ffmpeg -i in.mp4 -ss 00:00 [-t 5:0] -c copy -map 0 out.mp4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <array> | |
#include <cassert> | |
#include <ctgmath> | |
#include <iostream> | |
#include <vector> | |
#define PHI "\u03C6" | |
#define MUL "\u00D7" | |
static constexpr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env python3 | |
from dataclasses import dataclass | |
from math import log2, floor | |
from typing import cast, Set | |
if __name__ == '__main__': | |
n_set_, n_blk_, n_sz_, cols = '# of total sets: ', '# of total blocks: ', 'block size in bytes: ', 60 | |
n_set = int(input(n_set_)) | |
n_blk = int(input(n_blk_)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!usr/bin/env python3 | |
from fractions import Fraction | |
if __name__ == '__main__': | |
cols = 60 | |
titles = ('Memory Component', 'Hit Rate (in %)', 'Access Time (cycles)') | |
mcs = ('TLB', 'Cache', 'Main Mem', 'Disk') | |
hr_at: 'list[list[Fraction]]' = [] | |
for mc in mcs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# pip3 install dnspython pythonping | |
# github.global.ssl.fastly.net | |
# | |
# github.com | |
# gist.github.com | |
# assets-cdn.github.com | |
# |