FFmpeg cheat sheet
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
tweets.csv comes from `twint -u dam_io --csv -o tweets.csv` |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
import keras.backend as K | |
import tensorflow as tf | |
from tensorflow.keras.layers import Layer | |
"""Not tested, I'll play around with GANs soon with it.""" | |
from tensorflow.keras.layers import Conv2D | |
import numpy as np | |
class CoordConv2D(Layer): |
\documentclass[a4paper,12pt]{article} | |
\usepackage{fullpage} | |
\usepackage[latin1]{inputenc} | |
\usepackage{graphicx} | |
\usepackage{xspace} | |
% PDF stuff | |
\ifx\pdfoutput\undefined | |
\else | |
\pdfpagewidth=210mm |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Matlab code to produce PCA animations shown here: | |
% http://stats.stackexchange.com/questions/2691 | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Static image | |
clear all | |
rng(42) |
raise ValueError("DEPRECATED/FROZEN - see https://github.com/kastnerkyle/tools for the latest") | |
# License: BSD 3-clause | |
# Authors: Kyle Kastner | |
# Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise | |
# http://ml.cs.yamanashi.ac.jp/world/english/ | |
# MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl | |
# Pieces also adapted from SPTK | |
from __future__ import division | |
import numpy as np |
%pylab inline | |
import numpy as np | |
import pylab as plt | |
import GPy | |
import re | |
def get_equation(kern): | |
match = re.search(r'(math::)(\r\n|\r|\n)*(?P<equation>.*)(\r\n|\r|\n)*', kern.__doc__) | |
return '' if match is None else match.group('equation').strip() |
#!/bin/bash | |
if [[ "$#" -ne 1 ]]; then | |
echo "Usage: ./toUTF8 <dir>" | |
exit 1 | |
fi | |
OUTPUT_ENC=UTF-8 | |
FOLDER=$1 | |
ICONV="iconv" | |
# Convert | |
find $1 -type f -name "*" | while read fn; do |