Skip to content

Instantly share code, notes, and snippets.

@kofron
kofron / ecdf_jk.m
Created September 30, 2011 22:34
an empirical distribution calculator for matlab
% ecdf_jk calculates the empirical cumulative distribution
% function over a given input array. it returns the ecdf
% as a function which can be evaluated at any point.
function f = ecdf_jk(x)
@kofron
kofron / px1500_kern_2_36_compat.patch
Created May 16, 2011 21:48
update the signatek px1500 kernel mode drivers to be compatible with linux kernels greater than 2.36 which use unlocked_ioctl
From 5646187eee867ca31402a5f851baa0e602d0daab Mon Sep 17 00:00:00 2001
From: Jared Kofron <jared.kofron@gmail.com>
Date: Mon, 16 May 2011 22:28:53 +0000
Subject: [PATCH 1/2] added compatibility with kernels greater than 2.36 by using HAVE_UNLOCKED_IOCTL macro
---
driver/px4_drv.c | 6 +++++-
driver/px4_drv.h | 5 ++++-
driver/px4_ioctl.c | 10 ++++++++--
3 files changed, 17 insertions(+), 4 deletions(-)
@kofron
kofron / gist:946714
Created April 28, 2011 16:38
building a NIF on OSX
gcc -flat_namespace -undefined suppress -fPIC -shared -I $ERL_ROOT/usr/include/ -o somename.so somename.c