Kotlin Tools for Android ViewModel, LiveData, Data Binding, Dependency injection, Async operations, Repository pattern, Retrofit, Form Validation, Cloud Firestore, etc.
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: Tado temperature offset v1.5.2 | |
| description: | | |
| Ensure the Tado smart valve aligns with the temperature of a separate sensor. | |
| Adjusts the offset only when the difference exceeds ±0.5°C and incorporates hysteresis. | |
| Changelog: | |
| - v1.4: Initial implementation to adjust the Tado offset based on an external sensor. | |
| - v1.4.1: Adjusted triggers to apply a 5-minute delay for state changes to reduce sensitivity to transient fluctuations. | |
| - v1.4.2: Further ensured the state persists for 5 minutes to reduce unnecessary trigger activations and improve stability. |
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
| //SDL2 flashing random color example | |
| //Should work on iOS/Android/Mac/Windows/Linux | |
| #include <SDL.h> | |
| #include <SDL_opengl.h> | |
| #include <stdlib.h> //rand() | |
| static bool quitting = false; | |
| static float r = 0.0f; |