Skip to content

Instantly share code, notes, and snippets.

View ufcolemanlab's full-sized avatar

Coleman Lab Archives ufcolemanlab

View GitHub Profile
@ufcolemanlab
ufcolemanlab / git_cheat-sheet.md
Created October 21, 2017 14:45 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@ufcolemanlab
ufcolemanlab / generate.py
Created October 13, 2016 16:36 — forked from Pretz/generate.py
CSV to WAV: Needed a way to convert a list of numbers in a CSV file to a wave audio file. Go python.
#!/usr/bin/python
import wave
import numpy
import struct
import sys
import csv
from scikits.samplerate import resample
def write_wav(data, filename, framerate, amplitude):
@ufcolemanlab
ufcolemanlab / readroi.py
Created September 1, 2016 13:43 — forked from luispedro/readroi.py
Read ImageJ's ROI files
# Copyright: Luis Pedro Coelho <luis@luispedro.org>, 2012
# License: MIT
import numpy as np
def read_roi(fileobj):
'''
points = read_roi(fileobj)
Read ImageJ's ROI format
'''