I hereby claim:
- I am tomasbedrich on github.
- I am tomasbedrich (https://keybase.io/tomasbedrich) on keybase.
- I have a public key ASAWK5BwewGV2cKlNJe0WYLPaXpyMZSdpwV0aMN0oH25zgo
To claim this, I am signing this object:
# the device must be connected to the internet | |
DEVICE=192.168.77.106 | |
# pick the right FW_URL! see: https://github.com/yaourdt/tasmota-to-mgos#install | |
INTERMEDIATE_FW_URL=https://dl.dasker.eu/firmware/mgos512k-0x7000.bin | |
TARGET_FW=http://firmware.shelly.cloud/gen1/SHBDUO-1.zip | |
# download target firmware | |
curl -o fw.zip "$TARGET_FW" |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
# coding: utf-8 | |
# In[ ]: | |
import requests | |
import json | |
import time |
Create temporary MongoDB Docker container (named some-mongo
) and fill it with JSON data from data
subdir in current working directory. The documents are placed in tmp
DB, tmp
collection.
<?php | |
$container = require __DIR__ . '/../app/bootstrap.php'; | |
$app = $container->getByType('Nette\Application\Application'); | |
$p = $app->getPresenterFactory()->createPresenter('Base'); | |
$p->run($app->createInitialRequest()); | |
$p['header']->render(); |
#!/usr/bin/env python3 | |
from matplotlib import pyplot as plt | |
from matplotlib import animation | |
import threading | |
import collections | |
import queue | |
import logging |
#!/usr/bin/env python3 | |
import zmq | |
import struct | |
import sys | |
from time import sleep | |
def publish(port): | |
address = "tcp://*:{}".format(port) |
#!/usr/bin/env python3 | |
import sys | |
from requests import get | |
CRIME_CODE = 821 # = bribery | |
# make HTTP GET request for areas, parse them as JSON and access a list under a key "areas" | |
areas = get("http://mapakriminality.cz/api/areas", params={"level": 2}).json()["areas"] |
#!/usr/bin/env python3 | |
from tkinter import Tk, Canvas, mainloop | |
from math import cos, sin, pi, sqrt | |
from numpy import dot | |
# dot = lambda X, Y: [[sum(a*b for a, b in zip(X_row, Y_col)) for Y_col in zip(*Y)] for X_row in X] | |
master = Tk() |
#!/usr/bin/env python3 | |
import requests | |
from bs4 import BeautifulSoup | |
from collections import namedtuple | |
from datetime import datetime | |
import csv | |
Earthquake = namedtuple('Earthquake', 'date, state, area, magnitude, lat, lon') |