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
| 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 |
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 void Foo() | |
| { | |
| object lock1 = new object(); | |
| object lock2 = new object(); | |
| Console.WriteLine("Starting..."); | |
| var task1 = Task.Run(() => | |
| { | |
| lock (lock1) | |
| { | |
| Thread.Sleep(1000); |
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
| using System; | |
| using System.Diagnostics; | |
| namespace BinarySearchTree | |
| { | |
| class Node | |
| { | |
| public int value; | |
| public Node left; | |
| public Node right; |