Skip to content

Instantly share code, notes, and snippets.

View gist:0ca1f2fc53fb65dc8804c3ec2c1db7ec
sam@deb9:~/Downloads/powertabeditor/build$ make -k >> output_log.txt
/home/sam/Downloads/powertabeditor/source/score/voiceutils.cpp: In function ‘const Voice* VoiceUtils::getAdjacentVoice(const ScoreLocation&, int)’:
/home/sam/Downloads/powertabeditor/source/score/voiceutils.cpp:34:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (systemIndex >= 0 && systemIndex < location.getScore().getSystems().size())
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sam/Downloads/powertabeditor/source/score/voiceutils.cpp:37:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (staffIndex < nextSystem.getStaves().size())
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/sam/Downloads/powertabeditor/source/score/utils/scoremerger.cpp: In function ‘int importNotes(ScoreLocation&, ScoreLocation&, bool, bool, int&, std::function<int(ScoreLocation&, ScoreLocation&)>)’:
/home/sam/Dow
View gist:cff012eb34b0db9c98a26346ae25cfd3
sam@deb9:~/Downloads$ git clone --recursive git://github.com/powertab/powertabeditor.git
Cloning into 'powertabeditor'...
remote: Counting objects: 17959, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 17959 (delta 0), reused 3 (delta 0), pack-reused 17952
Receiving objects: 100% (17959/17959), 4.40 MiB | 1.33 MiB/s, done.
Resolving deltas: 100% (14112/14112), done.
Submodule 'external/Catch' (git://github.com/philsquared/Catch.git) registered for path 'external/Catch'
Submodule 'external/pugixml' (git://github.com/zeux/pugixml.git) registered for path 'external/pugixml'
Submodule 'external/rapidjson' (git://github.com/miloyip/rapidjson.git) registered for path 'external/rapidjson'
View firwin2_tests.jl
using DSP, Base.Test
include("fir2_filter.jl")
# `freq` and `gain` have different lengths.
@test_throws ErrorException firwin2(50, [0, 0.5, 1], [0.0, 1.0])
## # `nfreqs` is less than `ntaps`.
@test_throws ErrorException firwin2(50, [0, 0.5, 1], [0.0, 1.0, 1.0], nfreqs=33)
## # Decreasing value in `freq`
@test_throws ErrorException firwin2(50, [0, 0.5, 0.4, 1.0], [0, .25, .5, 1.0])
@sam81
sam81 / fir2_filter.jl
Created Oct 15, 2015
julia fir2 filter draft
View fir2_filter.jl
using DSP
## using PyCall
## @pyimport numpy
function interp1d{T<:Real, S<:Real, P<:Real}(grid::AbstractVector{T}, xp::AbstractVector{S}, yp::AbstractVector{P})
if grid[1] < xp[1]
error("cannot extrapolate to lower values than x")
end
if grid[end] > xp[end]
error("cannot extrapolate to higher values than x")
View strace_gettext_jessie.txt
strace julia -e 'dlopen("libgettextlib")' 2>&1 | grep open
execve("/home/sam/bin/julia", ["julia", "-e", "dlopen(\"libgettextlib\")"], [/* 41 vars */]) = 0
open("/home/sam/bin/juliaLang/julia/usr/bin/../lib/julia/tls/x86_64/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/sam/bin/juliaLang/julia/usr/bin/../lib/julia/tls/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/sam/bin/juliaLang/julia/usr/bin/../lib/julia/x86_64/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/sam/bin/juliaLang/julia/usr/bin/../lib/julia/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/sam/bin/juliaLang/julia/usr/bin/../lib/tls/x86_64/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/sam/bin/juliaLang/julia/usr/bin/../lib/tls/libncurses.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/home/sam/bin/juliaLang/jul
You can’t perform that action at this time.