This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/private/var/folders/z3/s0__77pd3n1bpym4f75hrzbc0000gn/T/pip_build_jfsantos/music21/setup.py", line 65, in <module> | |
include_package_data=True, | |
File "/Users/jfsantos/anaconda/envs/py3/lib/python3.3/distutils/core.py", line 148, in setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import wave | |
import numpy as np | |
import scipy as sp | |
WINSIZE=8192 | |
sound='sound.wav' | |
def read_signal(filename, winsize): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using WAV | |
function inline_audioplayer(filepath) | |
markup = """<audio controls="controls" {autoplay}> | |
<source src="$filepath" /> | |
Your browser does not support the audio element. | |
</audio>""" | |
display(MIME("text/html") ,markup) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jfsantos on github. | |
* I am jfsantos (https://keybase.io/jfsantos) on keybase. | |
* I have a public key whose fingerprint is C422 70CC D7E3 C653 09B0 E52E 06AF B67E AD5E 95E5 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import wave | |
import numpy as np | |
import scipy as sp | |
WINSIZE=8192 | |
sound='sound.wav' | |
def read_signal(filename, winsize): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BinDeps | |
@BinDeps.setup | |
@unix_only begin | |
ecos = library_dependency("ecos",aliases=["libecos"]) | |
end | |
provides(Sources, URI("https://github.com/ifa-ethz/ecos/archive/master.zip"), | |
[ecos], os = :Unix, unpacked_dir="ecos-master") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!obj:pylearn2.train.Train { | |
dataset: &train !obj:research.code.pylearn2.datasets.timit.TIMIT { | |
which_set: 'train', | |
frame_length: &flen 160, | |
frames_per_example: &fpe 1, | |
samples_to_predict: &ylen 1, | |
n_next_phones: 1, | |
n_prev_phones: 1, | |
#start: 0, | |
#stop: 100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
immutable Cdvec | |
val::Ptr{Cdouble} | |
len::Clong | |
end | |
a = [1.0, 2.0, 3.0] | |
b = [3.1, 4.2, 7.3] | |
Ca = Cdvec(pointer(a), length(a)) | |
Cb = Cdvec(pointer(b), length(b)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function groupby{T}(fn::Function, seq::Array{T}) | |
dict = Dict{Any, Array{T}}(); | |
for item in seq | |
key = fn(item); | |
if !haskey(dict, key) | |
dict[key] = []; | |
end | |
push!(dict[key], item); | |
end | |
return dict; |