Skip to content

Instantly share code, notes, and snippets.

View edsykes's full-sized avatar

Ed Sykes edsykes

View GitHub Profile
@edsykes
edsykes / gist:f8e309a06e21b7d63965
Created August 19, 2014 16:22
quantified dev api using curl.
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
@edsykes
edsykes / bootstrap3-carousel-animation-custom
Last active August 29, 2015 13:59
bootstrap 3 carousel step specific animations
@edsykes
edsykes / gist:10993341
Created April 17, 2014 15:46
bootstrap 3 carousel step specific animations
$(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();
}