Now it's part of https://github.com/maciejczyzewski/libchaos library!!!
This file contains hidden or 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
def f(l, o='{}'): | |
s=[[]] | |
def x(): s[-1].append([]); s.append(s[-1][-1]) | |
def y(): return -1 if len(s) == 1 else s.pop() | |
for c in l: | |
try: | |
if { o[0]: x, o[1]: y }[c]() == -1: return False | |
except KeyError: s[-1].append(c) | |
return s[0] if len(s) == 1 else False |
This file contains hidden or 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
import numpy as np | |
import pandas as pd | |
df = pd.read_csv('wach2.csv') # case 1: wach.csv, case 2: wach2.csv | |
pd.set_option('display.width', 1000) | |
m1 = 149.8; m2 = 199.6 | |
df.columns = ['m1', 'm2'] | |
m1_avg = df['m1'].mean() |
This file contains hidden or 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
https://dl.dropboxusercontent.com/u/103345209/Computerwissenschaften.pdf |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#define pf printf | |
#define nodeptr struct node_t* | |
struct node_t { | |
int val; | |
nodeptr rr; | |
nodeptr ll; |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#define pf printf | |
#define oo 0x7FFFFFFF | |
#define nodeptr struct node_t* | |
struct node_t { | |
int val; | |
nodeptr rr; |
This file contains hidden or 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
from os import environ | |
from sys import argv | |
from warnings import filterwarnings | |
from numpy.fft import rfft | |
from numpy.random import seed | |
from numpy import log1p, pi, polymul, mean, argmax | |
from scipy.signal import decimate, bilinear, lfilter, parzen | |
from soundfile import read as _read_audio | |
from copy import copy |
OlderNewer