Skip to content

Instantly share code, notes, and snippets.

View zsylvester's full-sized avatar

Zoltán Sylvester zsylvester

View GitHub Profile
@zsylvester
zsylvester / Create_GIF_animation.py
Created February 24, 2021 20:50
Create GIF animation
import imageio
import os
import numpy as np
import matplotlib.pyplot as plt
pngPath = r'path_to_folder_with_PNG_images'
savePath = r'path_to_output_GIF_animation'
if os.path.exists(pngPath+'.DS_Store'): # only needed on a Mac
os.remove(pngPath+'.DS_Store')
@zsylvester
zsylvester / dpcore_py.c
Created May 19, 2020 22:20
attempt to convert dpcore_py.c to Python 3
/*
* dpcore_py.c - calculate dynamic programming inner loop
* Python extension version
* 2014-05-30 Dan Ellis dpwe@ee.columbia.edu
*/
/* see http://wiki.scipy.org/Cookbook/C_Extensions/NumPy_arrays */
#include <Python.h>
#include <numpy/arrayobject.h>
#include <math.h>
{
"metadata": {
"name": "",
"signature": "sha256:1cb9121f5c8416082bfdebc884d855f106c6097e88d6a2fd473d9eb184af44d9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{