Skip to content

Instantly share code, notes, and snippets.

@iand
iand / gist:2956833
Created June 19, 2012 22:14
Plotinum Example
package main
import (
"code.google.com/p/plotinum/plot"
"code.google.com/p/plotinum/vg"
"code.google.com/p/plotinum/vg/veceps"
"math/rand"
)
func main() {
@iand
iand / gist:2948220
Created June 18, 2012 12:46
A data item that automatically saves data at a maximum rate of once every second, even if the data is changing much faster than that.
// A data item that automatically saves data at a maximum rate of once every second,
// even if the data is changing much faster than that.
// I didn't write this code. It was created by Roger Peppe and sent to the
// go-nuts mailing list. The original version is at http://play.golang.org/p/1LCxri0EXz
package main
import (
"io/ioutil"
@iand
iand / getrdfa.py
Created June 10, 2011 15:29
Command line util for extracting RDFa from a page
#!/usr/bin/python
import sys
import rdflib
g = rdflib.Graph()
g.parse(sys.argv[1], format="rdfa")
print g.serialize(format="turtle")