Skip to content

Instantly share code, notes, and snippets.

FARE BASIS: XLIGHT
RU.RULE APPLICATION
PEX FARES
APPLICATION
AREA
THESE FARES APPLY
WITHIN EUROPE.
CLASS OF SERVICE
THESE FARES APPLY FOR ECONOMY CLASS SERVICE.
TYPES OF TRANSPORTATION
@smartynov
smartynov / collect-mqtt.py
Last active November 24, 2017 15:01
Simple python MQTT to Postgresql data collector
#!/usr/bin/env python3
import config
import time
import psycopg2
import paho.mqtt.client as mqtt
sql = "INSERT INTO raw (type, data) VALUES (%s, %s)"
@smartynov
smartynov / onewire-1wire-search.ino
Created January 11, 2020 03:23
Simple Arduino script to search for connected 1wire devices and get addresses. Useful for DS18B20 discovery.
// FILE: oneWireSearch.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.04
// PURPOSE: scan for 1-Wire devices + code snippet generator
// DATE: 2015-june-30
// URL: http://forum.arduino.cc/index.php?topic=333923
//
// inspired by http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html
//
@smartynov
smartynov / Service.cpp
Last active July 22, 2020 19:53
An example of "service bus" approach to Arduino-based "smart home" systems
#include "Service.h"
Service::Service(ServiceBus * _bus, const char * _name) : bus(_bus), period(0)
{
name = strdup(_name);
_bus->add(this);
}
Service::~Service() {
free(name);

This is a transcript of a video interview

_Today, I'm joined by a very, very  special guest which is an honor to have   here at Europe Matters. He's calling in from  Tucson, Arizona. It's incredible that he accepted   this invitation to talk about very, very important  topics like what we learned from the pandemic,   what the future of Europe will look like, and  how we can save humankind. These very high