Skip to content

Instantly share code, notes, and snippets.

View waylonflinn's full-sized avatar

Waylon Flinn waylonflinn

View GitHub Profile
@waylonflinn
waylonflinn / HipsterMLMetrics.ipynb
Last active January 2, 2016 17:49
iPython Notebook Introduction to using the RankEval python package: a collection of metrics for evaluating Machine Learned rankings. To properly view it go here: http://nbviewer.ipython.org/gist/waylonflinn/8338948
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@waylonflinn
waylonflinn / nodeload.js
Created November 14, 2012 02:58
Patched nodeload.js for Windows
#!/usr/bin/env node
var util=require('util'),http=require('http'),url=require('url'),fs=require('fs'),path=require('path'),events=require('events'),querystring=require('querystring'),child_process=require('child_process');var EventEmitter=events.EventEmitter;var START=new Date();var BUILD_AS_SINGLE_FILE=true;var BUILD_AS_SINGLE_FILE,NODELOAD_CONFIG;if(!BUILD_AS_SINGLE_FILE){var EventEmitter=require('events').EventEmitter;}
exports.quiet=function(){NODELOAD_CONFIG.QUIET=true;return exports;};exports.usePort=function(port){NODELOAD_CONFIG.HTTP_PORT=port;return exports;};exports.disableServer=function(){NODELOAD_CONFIG.HTTP_ENABLED=false;return exports;};exports.setMonitorIntervalMs=function(milliseconds){NODELOAD_CONFIG.MONITOR_INTERVAL_MS=milliseconds;return exports;};exports.setAjaxRefreshIntervalMs=function(milliseconds){NODELOAD_CONFIG.AJAX_REFRESH_INTERVAL_MS=milliseconds;return exports;};exports.disableLogs=function(){NODELOAD_CONFIG.LOGS_ENABLED=false;return exports;};exports.setSlaveUpdateIntervalMs=fu