Public Gists by Endolith

Gravatar
Mon Nov 16 18:22:40 -0800 2009
1
2
3
# Getting the FFT bins to line up perfectly
# Gotta make the next sample *after* this chunk line up with the first
 
gist: 219815 Maxima shortcuts for audio ...
Gravatar
Tue Oct 27 11:48:17 -0700 2009
1
2
3
/* Decibel conversion and inverse */
db(x) := float(20 * log(abs(x)) / log(10));
 
gist: 207843 Banshee remote server
Gravatar
Sun Oct 11 13:03:09 -0700 2009
1
2
3
#!/usr/bin/env python
 
#Copyright (C) 2009 Nikitas Stamatopoulos
gist: 157847 Reverse alarm clock
Gravatar
Tue Jul 28 20:11:23 -0700 2009
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
gist: 157796 Unicode smileys emoticons
Gravatar
Tue Jul 28 18:14:26 -0700 2009
1
2
3
:⌉
=⌉
¦-) as opposed to |
gist: 150462 My test commands
Gravatar
Mon Jul 20 10:28:46 -0700 2009
1
2
3
// Search for synonyms of a word using thesaurus.com
// Should probably create an actual list of words and remove any duplicates, alphabetize them, etc.
 
gist: 150118 GraphCalc unit definitions
Gravatar
Sun Jul 19 18:53:44 -0700 2009
1
2
3
*GROUP*
Math
pi
gist: 149676 Convert newlines in filenam...
Gravatar
Sat Jul 18 13:05:24 -0700 2009
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
gist: 148112 A-weighting audio files in ...
Gravatar
Wed Jul 15 19:15:33 -0700 2009
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
gist: 147203 PonyProg2000: Flip bit orde...
Gravatar
Tue Jul 14 14:17:34 -0700 2009
1
2
3
#------ START --------
# PonyProg2000 script to flip the bit order of the bytes in
# a binary file before writing to an EEPROM
gist: 142345 Correlation and convolution...
Gravatar
Tue Jul 07 13:30:41 -0700 2009
1
2
3
# Version from SciPy.signal
 
def correlate(in1, in2, mode='full'):
gist: 132423 Proposed changes to GNU Uni...
Gravatar
Thu Jun 18 22:09:44 -0700 2009
1
2
3
#
# Money
#
gist: 129445 Count zero crossings to det...
Gravatar
Sat Jun 13 14:48:52 -0700 2009
1
2
3
function [frequency, period, crossings, seconds, samples]=freq(wavefile, siz)
 
% FREQ Measures frequency of mono .WAV files by counting zero crossings
gist: 129441 Python browser shortcuts
Gravatar
Sat Jun 13 14:33:44 -0700 2009
1
2
3
#!/usr/bin/env python
 
"""Some utilities for working with the web browser
gist: 127445 Custom unit definitions for...
Gravatar
Wed Jun 10 12:37:12 -0700 2009
1
2
3
# Custom unit definitions for GNU Units
# http://www.gnu.org/software/units/
 
gist: 127286 pycalcy - unit calculator f...
Gravatar
Wed Jun 10 08:36:35 -0700 2009
1
2
3
Needs to handle all these situations. Make them happen and get a useful result from each
errors from single-shot command is different from interactive session
 
gist: 118429 Euler's gradus suavitatis m...
Gravatar
Tue May 26 19:22:41 -0700 2009
1
2
3
# Don't use this for big numbers; it's a dumb brute-force method.
def prime_factors(n):
    """Return a list of the prime factors of the integer n."""
gist: 116485 Python Processing using Jyt...
Gravatar
Fri May 22 20:40:32 -0700 2009
1
2
3
#!/bin/sh
 
# This file was generated by the Jython installer
gist: 114336 Greatest common denominator...
Gravatar
Tue May 19 12:41:42 -0700 2009
1
2
3
# GCD and LCM are not in math module. They are in gmpy, but these are simple enough:
 
def gcd(a,b):
gist: 113310 Python function for generat...
Gravatar
Sun May 17 21:05:43 -0700 2009
1
2
3
def fusc(n):
    """Generate the nth number of Stern's diatomic series recursively"""