This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:9906563E3EC4C40BB20C0255FBEC8F2EE97E9FDA]
| from typing import List, Set | |
| def missing_ints(numbers: List[int]) -> Set[int]: | |
| if not numbers: | |
| return set() | |
| first = numbers[0] | |
| last = numbers[-1] | |
| whole_range = set(range(first, last + 1)) | |
| existing = set(numbers) |
| import argparse | |
| import random | |
| ROCK = "rock" | |
| PAPER = "paper" | |
| SCISSORS = "scissors" | |
| LIZARD = "lizard" | |
| SPOCK = "spock" | |
| QUIT = "quit" | |
| COMPUTER_CHOICES = [ROCK, PAPER, SCISSORS, LIZARD, SPOCK] |
| WEEKDAYS = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"] | |
| def day_of_week_offset(day, offset): | |
| return WEEKDAYS[(WEEKDAYS.index(day) + offset) % 7] | |
| def main(): | |
| assert day_of_week_offset("Monday", 0) == "Monday", "Same day" | |
| assert day_of_week_offset("Monday", 1) == "Tuesday", "Next day same week" | |
| assert day_of_week_offset("Tuesday", 3) == "Friday", "Several days later same week" |
| function deleteImages() { | |
| var images = SpreadsheetApp.getActive().getImages(); | |
| for (var i = 0; i < images.length; i++) { | |
| var image = images[i]; | |
| image.remove(); | |
| } | |
| } |
| import hassapi as hass | |
| class TimedLight(hass.Hass): | |
| def initialize(self): | |
| self.timer_duration = self.args["timer_duration"] | |
| self.light_id = self.args["light_id"] | |
| self.before = self.get_time_boundary("before") | |
| self.after = self.get_time_boundary("after") | |
| ampoule_entree_motion: | |
| module: timed_light | |
| class: TimedLight | |
| controller_ids: | |
| - 14:b4:57:ff:fe:69:54:66 | |
| - d0:cf:5e:ff:fe:f2:98:e6 | |
| light_id: light.ampoule_entree | |
| timer_duration: 120 | |
| before: 09:00:00 | |
| after: sunset |
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:9906563E3EC4C40BB20C0255FBEC8F2EE97E9FDA]