Skip to content

Instantly share code, notes, and snippets.

Avatar

Jared Kofron kofron

  • University of Washington
  • Seattle, WA
View GitHub Profile
@kofron
kofron / ecdf_jk.m
Created Sep 30, 2011
an empirical distribution calculator for matlab
View ecdf_jk.m
% 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
update the signatek px1500 kernel mode drivers to be compatible with linux kernels greater than 2.36 which use unlocked_ioctl
View px1500_kern_2_36_compat.patch
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 Apr 28, 2011
building a NIF on OSX
View gist:946714
gcc -flat_namespace -undefined suppress -fPIC -shared -I $ERL_ROOT/usr/include/ -o somename.so somename.c