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
View sample_rate.py
#!/usr/bin/python3
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("[xxx.xxx.xxx.xxx], ns [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx]");
printf("ARRAY_SIZE(\"[xxx.xxx.xxx.xxx], ns [xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx]\") = %lu\n", l);
}