Skip to content

Instantly share code, notes, and snippets.

View czonios's full-sized avatar

Christos Zonios czonios

View GitHub Profile
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */
/*
All data are fixed-point short integers, in which -32768
to +32768 represent -1.0 to +1.0 respectively. Integer
arithmetic is used for speed, instead of the more natural
floating-point.
For the forward FFT (time -> freq), fixed scaling is
performed to prevent arithmetic overflow, and to map a 0dB
sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq
@czonios
czonios / Plotting multivariate functions.ipynb
Last active January 19, 2019 11:41
A simple Jupyter notebook for visualizing scalar-valued functions of two variables.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@czonios
czonios / youtube-dl-playlist.md
Last active June 13, 2017 09:43
Download playlist from youtube, soundcloud and others.

Download entire playlist with youtube-dl

works for soundcloud as well

  • First get youtube-dl
    • Debian/Ubuntu sudo apt-get install youtube-dl
    • Arch/Manjaro/Antergos sudo pacman -S youtube-dl or yaourt youtube-dl and pick the packages you want
  • Then open a terminal
    • create a directory for the files mkdir playlist-name (change playlist-name to whatever name you want for the directory)
    • change current directory to it cd playlist-name
  • Finally enter the command