Skip to content

Instantly share code, notes, and snippets.

View Cewein's full-sized avatar
🌦️
Dreaming

Maximilien Nowak Cewein

🌦️
Dreaming
View GitHub Profile
@Cewein
Cewein / useFullFunction.py
Last active October 18, 2022 10:41
Code for morpho math
import tp_morpho
import glob
import re
from PIL import Image
import numpy as np
import platform
import tempfile
import os
import matplotlib.pyplot as plt
from scipy import ndimage as ndi
@Cewein
Cewein / GifMaker.py
Created December 14, 2020 16:48
A small list of function for making gif
### Usefull libraries
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
import glob
from PIL import Image
import re
import os
def atof(text):
@Cewein
Cewein / flen.c
Last active December 9, 2018 18:13 — forked from quantumsheep/flen.c
Calculate a file length. The file need to be in `rb` mode (reading and binary mode)
#include <stdio.h>
int flen(FILE *f)
{
int len;
fseek(f, 0, SEEK_END);
len = ftell(f);
rewind(f)
return len;
}