Skip to content

Instantly share code, notes, and snippets.

Sebastian Krzyszkowiak dos1

Block or report user

Report or block dos1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dos1 on github.
  • I am dos1 ( on keybase.
  • I have a public key whose fingerprint is 22DD 9FAE 006A 1143 5836 617C E8F2 35CF 3BDB C3FF

To claim this, I am signing this object:

View gist:27580fc0ffb94ecad333
#!/usr/bin/env python
import sys, wave, numpy, struct
wav =[1], "r")
(nchannels, sampwidth, rate, nframes, comptype, compname) = wav.getparams()
frames = wav.readframes(nframes * nchannels)
out = struct.unpack_from("%dh" % nframes * nchannels, frames)
signal = numpy.array(out if nchannels == 1 else list([(out[i]+out[i+1])/2 for i in range(0, len(out), 2)]))[::4]
amplitude = abs(numpy.fft.fft(signal))
freq = numpy.linspace(0, rate / 4, len(amplitude))
zipped = filter(lambda x: 85 <= x[0] <= 250, zip(freq, amplitude))
View robot.js
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robots = {}
angles = {}
wyczajony = {}
You can’t perform that action at this time.