This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void Main(string[] args) | |
{ | |
#if DEBUG | |
GetJobsFromQueue(); | |
#else | |
var host = new JobHost(); | |
host.RunAndBlock(); | |
#endif | |
} | |
- 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)
- RexV2 Evaluator for PHP PCRE, PHP Posix!, Perl, Python, Javascript, Node.JS!
- https://myregextester.com/index.php Allows to optimize patterns (I guess this is based on this Perl's Regexp::Optimizer).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function simulateCursorMovement(startEl, endEl, duration = 1000) { | |
// Create fake cursor if it doesn't exist | |
let fakeCursor = document.getElementById('fake-cursor'); | |
if (!fakeCursor) { | |
fakeCursor = document.createElement('div'); | |
fakeCursor.id = 'fake-cursor'; | |
Object.assign(fakeCursor.style, { | |
position: 'fixed', | |
top: '250px', | |
left: '250px', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************************* | |
Adafruit invests time and resources providing this open source code, | |
please support Adafruit and open-source hardware by purchasing | |
products from Adafruit! | |
MIT license, check LICENSE for more information | |
Copyright (c) 2019 Ha Thach for Adafruit Industries | |
Copyright (c) 2025 Tyeth Gundry for Adafruit Industries | |
All text above, and the splash screen below must be included in | |
any redistribution |