- A = [xA, yA] is a point on the 2D plane. Same for B, C, ...
- lengths are in any unit (ex: pixels)
- code snippets are in JavaScript
angleRad = angleDeg * Math.PI / 180;
import csv | |
import datetime | |
import sys | |
import sqlite3 | |
import random | |
#import script to get MiFit data into Gadgetbridge database | |
activity_file_name="ACTIVITY_MINUTE.csv" | |
hr_file_name1="HEARTRATE.csv" |
import sqlite3 | |
import matplotlib.pyplot as plt | |
import datetime | |
import numpy as np | |
conn = sqlite3.connect('Gadgetbridge') | |
c = conn.cursor() | |
a=c.execute("select strftime('%Y.%m.%d', datetime(timestamp, 'unixepoch')) as d,sum(STEPS) from MI_BAND_ACTIVITY_SAMPLE group by d").fetchall() | |
b={x[0]:x[1] for x in a} |
<!DOCTYPE FixtureDefinition> | |
<FixtureDefinition xmlns="http://www.qlcplus.org/FixtureDefinition"> | |
<Creator> | |
<Name>ROBE robe2qlc converter</Name> | |
<Version>0.1</Version> | |
<Author>ROBE Petr Vanek</Author> | |
</Creator> | |
<Manufacturer>Robe lighting s.r.o.</Manufacturer> | |
<Model>Robin Megapointe</Model> | |
<Type>Moving Head</Type> |
import struct | |
import SocketServer | |
from base64 import b64encode | |
from hashlib import sha1 | |
from mimetools import Message | |
from StringIO import StringIO | |
class WebSocketsHandler(SocketServer.StreamRequestHandler): | |
magic = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11' |
input="""img.png description | |
bbb 222 | |
ccc 333 | |
ddd 444 | |
eee 555 | |
fff 666""" | |
#define number of columns | |
cols=3 |