Skip to content

Instantly share code, notes, and snippets.

@sebpiq
sebpiq / gist:4128537
Last active April 22, 2024 15:20
Python implementation of the Goertzel algorithm for calculating DFT terms
# Copyright © 2020 Sébastien Piquemal [email protected]
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See the license text below for more details.
#
# --------------------------------------------------------------------
#
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
@sebpiq
sebpiq / online-dsp-resources.md
Last active December 22, 2015 19:49
Online audio resources
#N canvas 153 130 833 451 10;
#X obj 132 15 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 132 80 15 0 0 0 - - -;
#X obj 130 35 gr.in/live \$0-SOUNDIN;
#X obj 76 243 gr.in/read \$0-SOUNDIN;
#X obj 119 120 f;
#X obj 41 -11 inlet;
#X obj 41 27 t b f;
#X floatatom 223 150 5 0 0 0 - - -;
@sebpiq
sebpiq / waaUtils.js
Created August 21, 2014 12:42
Common helpers for web audio API
/* Copyright 2014 Sébastien Piquemal <[email protected]>
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#N canvas 630 159 450 300 10;
#X obj 104 17 loadbang;
#X obj 104 183 print;
#X obj 173 17 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 240 99 abc;
#X obj 104 55 t b b b b b;
#X msg 278 99 -2 3 5;
#X msg 139 99 -14.3;
#X msg 104 99 3.7;
#N canvas 411 122 775 440 10;
#X declare -lib mrpeach;
#X obj 34 10 import mrpeach;
#X obj 58 322 udpsend;
#X obj 289 142 packOSC;
#X msg 58 81 connect localhost 9000;
#X obj 30 57 loadbang;
#X obj 584 37 udpreceive 9001;
#X obj 584 69 unpackOSC;
#X obj 584 100 print RECEIVED;
@sebpiq
sebpiq / Dockerfile
Last active May 27, 2024 14:42
envstore.py workaround for reusing the result of previous commands in a Dockerfile.
# In the following example usage of envstore.py, we want to get dynamically the home directory
# of a newly created user.
# We run the command to get that directory path once, and store the result using `envstore.py`
# with key `USER_HOME`.
FROM ubuntu:bionic
# Python 3.7 is needed for envstore.py
RUN apt-get update && apt-get install -qy software-properties-common
RUN add-apt-repository -y ppa:deadsnakes/ppa
RUN apt-get update && apt-get install -qy python3.7
I am attesting that this GitHub handle sebpiq is linked to the Tezos account tz1VS43nvMPp3ghrDF7it8FCHiVwpiQcmEfW for tzprofiles
sig:edsigtm2Fv6wXgyCkeuWjQ19AwWWMBCNPwU2bYEqcoQEXaXLxiN8NR5EG2RLiZbJnbJsQRncZcdC1u1LHT2mhaysvAzvb9MUNFz