Skip to content

Instantly share code, notes, and snippets.

View stevebrewer's full-sized avatar

Steve Brewer stevebrewer

View GitHub Profile
var ALL_CHARTS = []
var REFRESH_ALL_CHARTS = function(){
for(var i = 0; i < ALL_CHARTS.length; i++){
ALL_CHARTS[i].update();
}
}
nv.addGraph(function() {
var chart = nv.models.linePlusBarChart()
/**
* Based on node-uuid.js http://gist.github.com/393456
*
* Generates a new UUID and passes it to the given callback function.
*
* Calls uuid.sh - make your own depending on your system. I followed an example here: http://www.redleopard.com/2010/03/bash-uuid-generator/
*
* Callback signature is function(err, uuid).
*/
exports.create_uuid = (function() {