Skip to content

Instantly share code, notes, and snippets.

@mattalcock
mattalcock / README.md
Last active October 1, 2015 04:28
python script to process images from the web very quickly

This is a markdown file to explain how the script works

@mattalcock
mattalcock / responsive_d3_example.html
Created February 22, 2012 18:42
Responsive d3.js D3 Javascript Histogram Example
!DOCTYPE html>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="https://github.com/mbostock/d3/blob/master/d3.v2.min.js"></script>
<style>
body {
font: 10px sans-serif;
}
@jonathana
jonathana / grouplens_evaluator.py
Created June 22, 2011 20:15
"Mahout in Action" Grouplens evaluator sample from section 2.5 ported to jython
import sys, os, glob
from datetime import datetime
sys.path.append(os.environ.get("MAHOUT_CORE"))
for jar in glob.glob(os.environ.get("MAHOUT_JAR_DIR") + "/*.jar"):
sys.path.append(jar)
from org.apache.mahout.common import RandomUtils
from org.apache.mahout.cf.taste.common import TasteException
from org.apache.mahout.cf.taste.eval import *