Skip to content

Instantly share code, notes, and snippets.

View PedroLopes's full-sized avatar

Pedro Lopes PedroLopes

View GitHub Profile
@robdmc
robdmc / csv_logger.py
Last active December 13, 2022 09:57
Useful CSV logging with python
#! /usr/bin/env python
import logging
import datetime
import fleming
import pytz
import os
from itertools import islice
import sys
@JGallardo
JGallardo / copyleft.html
Created July 25, 2013 05:51
This makes the "Copyleft symbol." Credit to the Stack Overflow user "Anonimo" for the help on the CSS http://stackoverflow.com/users/2178220/anonimo
<style>
.copy-left {
display: inline-block;
text-align: right;
margin: 0;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
@endolith
endolith / frequency_estimator.py
Last active May 8, 2024 17:59
Frequency estimation methods in Python
from __future__ import division
from numpy.fft import rfft
from numpy import argmax, mean, diff, log, nonzero
from scipy.signal import blackmanharris, correlate
from time import time
import sys
try:
import soundfile as sf
except ImportError:
from scikits.audiolab import flacread