Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View leftaroundabout's full-sized avatar

Justus Sagemüller leftaroundabout

  • KTH Royal Institute of Technology
  • Stockholm
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leftaroundabout
leftaroundabout / ExpAlloc-bench.ipynb
Last active April 1, 2017 00:07
Bad (exponential!) performance of layer of MaybeT wrappers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leftaroundabout
leftaroundabout / IntermodSpectrum.hs
Last active September 2, 2017 13:18
Spectrum view of the effect nonlinear distortion has on various sound signals
import Numeric.FFT.Vector.Invertible
import Data.Vector.Unboxed (Vector)
import qualified Data.Vector.Generic as GA
import Data.Complex (magnitude)
import Data.Function ((&))
import Graphics.Dynamic.Plot.R2
main :: IO ()
main = do
@leftaroundabout
leftaroundabout / JIT-tone-constructions.ipynb
Last active September 9, 2017 08:18
Comparison of the frequencies you get for various just-intonation constructions of the notes C♯ and D♭
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
-- |
-- Module : Data.Vector.Unboxed.Nested
-- Copyright : (c) Justus Sagemüller 2017
-- License : BSD-style
--
-- Maintainer : (@) jsagemue $ uni-koeln.de
-- Stability : experimental
-- Portability : portable
--
@leftaroundabout
leftaroundabout / PairApplyTest.c
Last active September 11, 2017 12:33
Comparison of two ways to fold over unordered unique pairs in a collection of elements
#define N 50001
#include "stdio.h"
int main() {
int v[N];
for (int i=0; i<N; ++i) {
v[i] = i;
}
int b=0;