Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import sys
def intersect(fileset):
fset = set(open(fileset[0]).readlines())
for f in fileset[2:]:
fd = open(f)
fset &= set(fd.readlines())
# print(list(fset))
@Felamande
Felamande / fft.go
Last active November 22, 2015 12:14
Fast fourier transform.
package fft
import (
"math"
"math/cmplx"
)
func FFT(input []complex128) []complex128 {
fftNums, fftLen, NPow, WN, fftOrder := prepair(input)