Skip to content

Instantly share code, notes, and snippets.

View jackdreilly's full-sized avatar

Jack Reilly jackdreilly

View GitHub Profile
@jackdreilly
jackdreilly / sft.py
Created May 3, 2012 21:36 — forked from anonymous/sft.py
some different implementations
def sft(x,N=999999999):
return map(fft,[x]*N)[0]
def sft(x):
fft_x = fft(x)
stock_prices = [ticker(stock) for stock in market]
if stock_prices == fft_x:
return stock_prices
else:
project_home="/Users/jmoxon/Tutorial/Clothesliner/pant_entry/"
csv_home="/Users/jmoxon/Tutorial/Clothesliner/pant_entry/learning.csv"
import sys, os
sys.path.append(project_home)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from pants.models import Item
import csv