This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stream=$(curl -x localhost:8888 -X POST http://app.quantifieddev.org/stream) | |
id=$(echo $stream | sed 's_.*"streamid": "\([^"]*\)".*_\1_') | |
read=$(echo $stream | sed 's_.*"readToken": "\([^"]*\)".*_\1_') | |
write=$(echo $stream | sed 's_.*"writeToken": "\([^"]*\)".*_\1_') | |
curl -k -x localhost:8888 -X POST -H Content-Type:application/json -H Authorization:$write -H Cache-Control:no-cache -d '{ "dateTime": "2014-03-31T15:28:36.1788806Z", "location": { "lat": 52.5203, "long": 0.8567 }, "actionTags": [ "Build", "Start" ], "objectTags": [ "Computer", "Software" ], "properties": { "Language": "C#", "Environment": "VisualStudio2012" } }' http://app.quantifieddev.org/stream/$id/event | |
echo register this stream at http://app.quantifieddev.org/dashboard?streamId=$id\&readToken=$read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var intervalArray = function() { | |
var debug = console.log.bind(console); | |
debug = function() {}; // comment this out to get logging | |
var arrayAnimation = function(carousel) { | |
if (!(carousel.dataset.intervalArray == "true")) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
var timings = [6000, 4000, 4000, 4000, 4000, 4000]; | |
var index = 0; | |
var animate = true; | |
var nextAnimation = function(timings) { | |
if (animate) { | |
$('.right.carousel-control').click(); | |
} |
NewerOlder