Skip to content

Instantly share code, notes, and snippets.

View DimitriPapadopoulos's full-sized avatar

Dimitri Papadopoulos Orfanos DimitriPapadopoulos

  • CEA
  • Université Paris-Saclay
View GitHub Profile
from pathlib import Path
import numpy as np
from scipy.misc import electrocardiogram
from enum import IntEnum
from pyedflib import highlevel
class SleepStage(IntEnum):
View TEST.c
#include <stdio.h>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
int main(void)
size_t l = ARRAY_SIZE("[], ns [,]");
printf("ARRAY_SIZE(\"[], ns [,]\") = %lu\n", l);