Skip to content

Instantly share code, notes, and snippets.

.idea
@eamador
eamador / frequency_estimator.py
Created November 13, 2015 10:37 — forked from endolith/frequency_estimator.py
Frequency estimation methods in Python
from __future__ import division
from scikits.audiolab import flacread
from numpy.fft import rfft, irfft
from numpy import argmax, sqrt, mean, diff, log
from matplotlib.mlab import find
from scipy.signal import blackmanharris, fftconvolve
from time import time
import sys
from parabolic import parabolic
@eamador
eamador / Keyboard.py
Created October 27, 2015 14:20 — forked from serdmanczyk/Keyboard.py
Keyboard w/ PyAudio and TKinter
#!/usr/bin/python
# coding=utf-8
import numpy
import random
import math
import copy
import pyaudio
from Tkinter import *
@eamador
eamador / whatsapp-image-compression
Created October 22, 2015 07:45 — forked from akshay1188/whatsapp-image-compression
Whatsapp like image compression
- (UIImage *)compressImage:(UIImage *)image{
float actualHeight = image.size.height;
float actualWidth = image.size.width;
float maxHeight = 600.0;
float maxWidth = 800.0;
float imgRatio = actualWidth/actualHeight;
float maxRatio = maxWidth/maxHeight;
float compressionQuality = 0.5;//50 percent compression
if (actualHeight > maxHeight || actualWidth > maxWidth) {
@eamador
eamador / custom-tweetbox.html
Last active September 2, 2015 14:28 — forked from robcolburn/custom-tweetbox.html
How to make custom tweetboxes
<div>
<h1>Tweetbox</h1>
<form id="my-tweetbox">
<p><textarea name="tweet">Write your tweet...</textarea></p>
<p><input type="submit" name="submit" value="Tweet!" /></p>
</form>
</div>
<div>
<h1>County Tweetbox</h1>