Skip to content

Instantly share code, notes, and snippets.

View albertzak's full-sized avatar

Albert Zak albertzak

View GitHub Profile
@albertzak
albertzak / keybase.md
Created September 6, 2018 11:00
Keybase Verification

Keybase proof

I hereby claim:

  • I am albertzak on github.
  • I am albertzak (https://keybase.io/albertzak) on keybase.
  • I have a public key ASAnBNnvobaG3vg5KZ7mebwPLzcNhd2N4aDD8eVpNAP5nwo

To claim this, I am signing this object:

(defn on-konami-code []
(prn :konami-code-detected))
(defn setup-konami-code-listener! []
(let
[key
{37 :left
38 :up
39 :right
40 :down
@albertzak
albertzak / switches_off_at_sunrise.yaml
Last active December 12, 2021 12:06 — forked from Knuspel/switches_on_at_sunset.yaml
Home Assistant Blueprint for Turning Switches Off At Sunrise
blueprint:
name: Switch Off At Sunrise
description: Turn off the following switches at sunset
domain: automation
input:
# Create a variable for identifying the light to act upon
target_switch:
name: Switches
description: This is the switch (or switches) that will be turned off at sunset
# Use a selector, to pick the light(s)