Skip to content

Instantly share code, notes, and snippets.

View jdurbin's full-sized avatar

James Durbin jdurbin

View GitHub Profile
#!/usr/bin/env groovy
import grapnel.util.*
// Combine multiple URSA outputs into a single tab file, removing header text along the way.
dirname = args[0]
matchStr = args[1]
pattern = "${matchStr}*.*"
@jdurbin
jdurbin / kmeansWM.groovy
Last active December 9, 2015 21:45
K-means clustering using Weka and WekaMine wrappers for Groovy
#!/usr/bin/env groovy
import durbin.weka.*
import static WM.*
dataFile = args[0]
k = args[1] as int
wm = new WM()
// Read a features x samples tab delimited file
@jdurbin
jdurbin / ToolTip.pde
Created September 9, 2011 04:43
ToolTip class for processing and processing.js.
/****
* roundRect method
* ToolTip class
*
* Author: James Durbin
* http://bayesianconspiracy.blogspot.com
*
* See running example here:
* http://bayesianconspiracy.blogspot.com/2011/09/tooltip-class-for-html5-canvas-written.html
*