Skip to content

Instantly share code, notes, and snippets.

View hoborm's full-sized avatar
🐶

Mihaly Hobor hoborm

🐶
  • Budapest, Hungary
  • 18:27 (UTC +02:00)
View GitHub Profile
blueprint:
name: Aqara TRV E1 External Temperature Control
description: >
This automation allows the Aqara TRV E1 Smart Radiator Thermostat to use temperature readings from an external sensor rather than its internal sensor. Whenever the temperature sensor reports a new value, it is sent to the TRV for more accurate climate control.
domain: automation
source_url: "url"
input:
external_temp_sensor:
name: External Temperature Sensor
@hoborm
hoborm / deadlocks.cs
Created February 12, 2019 10:15
deadlocks
public void Foo()
{
object lock1 = new object();
object lock2 = new object();
Console.WriteLine("Starting...");
var task1 = Task.Run(() =>
{
lock (lock1)
{
Thread.Sleep(1000);
@hoborm
hoborm / BinarySearchTree.cs
Created March 11, 2018 20:29 — forked from aaronjwood/BinarySearchTree.cs
Binary search tree implementation in C#
using System;
using System.Diagnostics;
namespace BinarySearchTree
{
class Node
{
public int value;
public Node left;
public Node right;