Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Pietsch cpietsch

View GitHub Profile
@alecjacobson
alecjacobson / denoise.sh
Last active Nov 19, 2020
Remove background audio noise from a video clip via the command line (using ffmpeg and sox)
View denoise.sh
#!/bin/bash
if [ -z "$2" ];then
echo 'USAGE:
denoise input.mov output.mov
OR
denoise input.mov output.mov [ambient-noise-start-time] [ambient-noise-duration] [sox-noisered-amount] [sox-norm-param]
@gka
gka / .gitignore
Last active Nov 29, 2020
covid19 berlin cases
View .gitignore
.Rhistory
.Rproj.user
covid19-berlin.Rproj
.Renviron
@veltman
veltman / tiles.md
Last active Sep 27, 2019
Making a big image zoomable
View tiles.md

Making a big image zoomable

When you have a giant image and you want to make it easy to pan and zoom without downloading the whole 50MB image into someone's browser, a nice workaround is to cut that image into tiles at different zoom levels and view it as it were a map. An example where I've used this technique is The "Snowpiercer" Scenario.

One way to cut your big image into the requisite tiles is with gdal2tiles.py.

Alternatively, this Node script will do the cutting after you install node-canvas and mkdirp:

const fs = require("fs"),
You can’t perform that action at this time.