Skip to content

Instantly share code, notes, and snippets.

View jpauwels's full-sized avatar

Johan Pauwels jpauwels

View GitHub Profile
@jbenet
jbenet / current_utc_time.c
Created July 17, 2011 16:17
work around lack of clock_gettime in os x
/*
author: jbenet
os x, compile with: gcc -o testo test.c
linux, compile with: gcc -o testo test.c -lrt
*/
#include <time.h>
#include <sys/time.h>
#include <stdio.h>
@davidandrzej
davidandrzej / scaledimage.py
Created April 25, 2011 02:17
Simple matrix intensity plot, similar to MATLAB imagesc()
"""
Simple matrix intensity plot, similar to MATLAB imagesc()
David Andrzejewski ([email protected])
"""
import numpy as NP
import matplotlib.pyplot as P
import matplotlib.ticker as MT
import matplotlib.cm as CM