Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Van Vaerenbergh steven2358

View GitHub Profile
@mdamien
mdamien / 0readme
Created July 26, 2020 07:21
Twitter Calendar View of user tweets
View 0readme
tweets.csv comes from `twint -u dam_io --csv -o tweets.csv`
@KeigoAlexTanaka
KeigoAlexTanaka / ffmpeg.md
Last active February 26, 2022 16:00 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
View ffmpeg.md
@Dref360
Dref360 / coordconv2d.py
Last active February 11, 2020 14:40
Un-scaled version of CoordConv2D
View coordconv2d.py
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):
@ledmaster
ledmaster / MultipleTimeSeriesForecasting.ipynb
Last active April 23, 2022 17:36
How To Predict Multiple Time Series With Scikit-Learn (With a Sales Forecasting Example)
View MultipleTimeSeriesForecasting.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vmarkovtsev
vmarkovtsev / notebook.ipynb
Created March 10, 2017 10:40
lapjv blog post
View notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View survey.tex
\documentclass[a4paper,12pt]{article}
\usepackage{fullpage}
\usepackage[latin1]{inputenc}
\usepackage{graphicx}
\usepackage{xspace}
% PDF stuff
\ifx\pdfoutput\undefined
\else
\pdfpagewidth=210mm
anonymous
anonymous / pca_animation.m
Created January 26, 2017 21:47
Matlab code to produce PCA animations
View pca_animation.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Matlab code to produce PCA animations shown here:
% http://stats.stackexchange.com/questions/2691
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Static image
clear all
rng(42)
@kastnerkyle
kastnerkyle / audio_tools.py
Last active December 15, 2022 14:52
Audio tools for numpy/python. Constant work in progress.
View audio_tools.py
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
@rikrd
rikrd / gpy_kernel_cheatsheet.py
Last active July 5, 2022 20:59
GPy Kernel Cheatsheet:: All the kernels in GPy (example realizations, covariance matrix, kernel equation)
View gpy_kernel_cheatsheet.py
%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()
@masdeseiscaracteres
masdeseiscaracteres / toUFT8.sh
Last active August 29, 2015 14:03
Automatically detect the encoding of a file an convert it to UTF-8 (use with care)
View toUFT8.sh
#!/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