This file contains hidden or 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
I am attesting that this GitHub handle samdjohnson is linked to the Tezos account tz1fJ86qDkgPq7uiQsgiWP5dpn99rFSpssoa for tzprofiles | |
sig:edsigtd7cdVptjxemFU5UmfucZSBo9NZoNkrKYUmDTXwp8i7Rv2VwN5xMCyrk5tUqnxR1JKanQexaeYcWa1iPaopgxWUYd5Hp4B |
This file contains hidden or 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
columns: [ | |
['x', '2010-01-01', '2011-01-01', '2012-01-01', '2013-01-01', '2014-01-01', '2015-01-01'], | |
['sample', 30, 200, 100, 400, 150, 250] | |
] |
This file contains hidden or 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
session = get_session('tempo-iq-backend-url', key, secret) | |
start_time = datetime.datetime(2014,1,1,0,0,0,0) | |
end_time = datetime.datetime(2014,1,2,0,0,0,0) | |
results = session.query(Device) | |
.filter(Device[‘building’] == 1) | |
.filter(Sensor.key == “temp”) | |
.interpolate(“linear”, “PT15M”) | |
.aggregate(“avg”) |
This file contains hidden or 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
session = get_session('tempo-iq-backend-url', key, secret) | |
session.query(Sensor).filter(Device.key == 'foo').rollup(['avg','max','min'], 'PT15M').read() |
This file contains hidden or 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
selection = { | |
:devices => {:key => device_key} | |
} | |
start = Time.utc(2014, 1, 1) | |
stop = Time.utc(2014, 1, 2) | |
rows = client.read(selection, start, stop) do |pipeline| | |
pipeline.interpolate("PT1S", :linear, start, stop) | |
end.to_a |
This file contains hidden or 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
<div id="sensor_data_calculator"> | |
<h3>How Much Data Will Your Sensors Generate?</h3> | |
<p>I have <span data-var="devices" class="TKBigNumberField pull-right" data-size="12"> devices</span> with <span data-var="sensors" class="TKBigNumberField pull-right" data-size="12"> sensors each,</span></p> | |
<p class="pull-right">collecting data <span data-var="collection_frequency" class="TKBigNumberField" data-size="2"> time(s)</span> every | |
<select data-var="collection_period" class="TKSelectField"> | |
<option value="second"> second</option> | |
<option value="minute"> minute</option> | |
<option value="hour">hour</option> | |
<option value="day">day</option> | |
</select> |
This file contains hidden or 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
$(function(){ | |
function getCookie(name) { | |
var cookieValue = null; | |
if (document.cookie && document.cookie != '') { | |
var cookies = document.cookie.split(';'); | |
for (var i = 0; i < cookies.length; i++) { | |
var cookie = jQuery.trim(cookies[i]); | |
// Does this cookie string begin with the name we want? | |
if (cookie.substring(0, name.length + 1) == (name + '=')) { | |
cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); |