Skip to content

Instantly share code, notes, and snippets.

View tyeth's full-sized avatar

Tyeth Gundry tyeth

  • Bristol, UK
  • 11:58 (UTC +01:00)
View GitHub Profile
@tyeth
tyeth / azure.cs
Created January 25, 2016 01:45 — forked from gweinhold/azure.cs
Workaround for Azure Webjobs in development machine.
public static void Main(string[] args)
{
#if DEBUG
GetJobsFromQueue();
#else
var host = new JobHost();
host.RunAndBlock();
#endif
}

GRAIN Data Cleaning

RegEx

Online Regex Tester Suites & Code Generators

  1. regex101 Online regex tester for PHP, PCRE, JavaScript and Python that highlights pattern and matches on the fly. Also features a Code generator and a regex debugger!
    https://regexr.com/ Online regex tester with gut regex replace and explain functionality.
    https://www.debuggex.com/ Can show neat expression diagrams (not active anymore).
    https://regexper.com/ translates regular expressions into an SVG image (for documentation or embedding)
@tyeth
tyeth / enviroplus_into_adafruitio.py
Created February 23, 2024 14:53 — forked from helgibbons/enviroplus_into_adafruitio.py
Enviro + into adafruit.io
import time
from machine import Pin, ADC, UART
from picographics import PicoGraphics, DISPLAY_ENVIRO_PLUS
from pimoroni import RGBLED, Button
from breakout_bme68x import BreakoutBME68X, STATUS_HEATER_STABLE
from pimoroni_i2c import PimoroniI2C
from breakout_ltr559 import BreakoutLTR559
from pms5003 import PMS5003
import WIFI_CONFIG
from network_manager import NetworkManager
@tyeth
tyeth / funhouse.yaml
Created April 11, 2024 23:49 — forked from Timo614/funhouse.yaml
Adafruit funhouse esphome starter config
# Thanks to this configuration for the initial legwork https://github.com/kbx81/esphome-configs/blob/main/dev/esp-funhouse.yaml
esphome:
name: funhouse
friendly_name: Funhouse
platformio_options:
board_build.mcu: esp32s2
board_build.variant: esp32s2
esp32:
test/integration/i2c_test.py::test_fake_i2c_attach_detach_bme280 (fixtures used: _session_event_loop, connected_client, event_loop, event_loop_policy, i2c_controller, i2c_drivers, io_key, io_username, make_pb_i2c_device_add_replace_bme280, make_pb_i2c_device_remove_bme280, monkeypatch, mqtt_client_id, mqtt_subscribe_topic, pb_i2c_device_add_replace_bme280, pb_i2c_device_remove_bme280, protomq, request, router, send_and_receive_protobuf, set_event_loop_policy, tracked_deliveries, ws_board_name, ws_client, ws_mqtt_client)Driver initialized OK!
New Task: Update I2C sensor bme280 on 119 with new values every 15.0 seconds
Interval (15.0sec) elapsed! Updating sensor: 119
Sensor Value: 3.14
Sensor Value: 3.14
Sensor Value: 3.14
Sensor Value: 3.14
Removed task: Update bme280 on 119
PASSED
TEARDOWN F pb_i2c_device_remove_bme280