A graph that interprets IoT temperature device through time, tracking internal to a refrigerator and external to a refrigerator.
Written in D3, and visible here
Gist available here
<scene> | |
<entity id="1"> | |
<!--name> | |
<name>Bird</name> | |
<description>A flying bird</description> | |
</name--> | |
<name name="Bird" description="A flying bird" /> | |
<!-- mesh> | |
<meshref>bird.mesh</meshref> | |
<materialref index=0>feathers.material</materialref> |
from xml.etree.ElementTree import ElementTree | |
import xml.etree.ElementTree as ET | |
import sys | |
if len(sys.argv) != 2: | |
print "Giev filename!" | |
sys.exit(1) | |
import json | |
import sys | |
F = sys.argv[1] | |
print(F) | |
#F = "just60.json" | |
#F = "c-asus_nvidia.json" | |
#F = TimelineRawData-20160412T120624.json" |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Toggle3D : MonoBehaviour { | |
// group that this toggle can belong to | |
[SerializeField] | |
private ToggleGroup3D m_Group; |
import csv | |
import datetime | |
session_start_time = datetime.datetime(2018, 8, 31, 22, 57, 27) | |
print("FILE \"swingit_vol1.mp3\" MP3") | |
with open('edit-31.8.2018.csv') as csvfile: | |
reader = csv.reader(csvfile) |
""" | |
fastapi-cache decorator modified for SQLModel use. | |
Also, caches and serves the final JSON, instead of Python objects. | |
Thus looses pydantic validation of the response objects up in fastapi, | |
but this cache func does `response_model.from_orm` itself, so runs the same validation. | |
Elsewhere, there's an example that uses unmodified fastapi-cache with SQLModel, that works too | |
https://github.com/jonra1993/fastapi-alembic-sqlmodel-async/blob/main/fastapi-alembic-sqlmodel-async/app/api/v1/endpoints/cache.py | |
""" |
import threading | |
import asyncio | |
from queue import Queue | |
import time | |
from typing import Awaitable | |
import flask | |
from firebase_functions.private import serving | |
concurrent_handler_id = 0 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
body {font-family: Arial;} | |
/* Style the tab */ | |
.tab { |