This file contains 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
{% set now = now() %} | |
{% set earliest_reminder = '05:00:00' %} | |
{% set latest_reminder = '21:00:00' %} | |
{% set start_time = '15:00:00' %} | |
{% set end_time = '11:00:00' %} | |
{% set current_weekday = now.weekday() %} | |
{% set current_time = now.strftime('%H:%M:%S') %} | |
{% set water_box_attached = state_attr('vacuum.roborock_qrevo', 'waterBoxCarriageStatus') == 1 %} | |
{% set weekdays = [0, 3] %} |
This file contains 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
╔╗╔╗ ╔═╗ | |
╔╝╚╝╚╗╔╗ ║╔╝ | |
╚══╗╔╝║║╔═╝║ ╔╗ | |
╔╗║╚╗║║║╔╗║╔╗ ╔╝║ ╔╗ | |
This file contains 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 class Main | |
{ | |
public static void main(String[] args) { | |
// what do all these parameters mean? | |
Account account = new Account(1, "Otto", "Päde", 50, "Haselnussstraße", 0, null, "user", false); | |
// or with builder pattern | |
Account account = new AccountBuilder() | |
.withId(1) | |
.withFirstName("Otto") |
This file contains 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
package de.perfectban.util; | |
import java.util.*; | |
public class TimeManager | |
{ | |
private final LinkedHashMap<Character, Long> timeKeys; | |
public TimeManager() { | |
this.timeKeys = new LinkedHashMap<>(); |