Skip to content

Instantly share code, notes, and snippets.

View daniellandau's full-sized avatar

Daniel Landau daniellandau

View GitHub Profile
@jevakallio
jevakallio / reactiveconf-slam-poetry.md
Last active July 7, 2021 19:57
#ReactiveConf 2017 Lightning Talk Submission: JavaScript Slam Poetry

TL;DR: If you want to see me perform a spoken word poem about JavaScript in front of 1000 people (and on video), please ⭐ star this gist. If you're on mobile, you'll need to request desktop site.

JavaScript Slam Poetry

Javascript! Slam! Poetry!

@urish
urish / home-assisstant-yowsit-plug.yaml
Last active June 17, 2019 07:00
Yowsit Smart Plug configuration for Home Assistant
# Yowsit Smart Bluetooth Plug configuration for home-assistant
#
# https://www.yoswit.com/products/smart-home-accessories/smart-plug.html
# https://www.home-assistant.io/
switch:
- platform: command_line
switches:
living_room_lamp:
command_on: gatttool -b 20:91:48:5B:16:9D --char-write-req -a 0x0e -n 02
@pelrun
pelrun / set_state.py
Last active January 30, 2024 08:24
Home Assistant script to set an entity's state, used with the IKEA Tradfri remote control.
if 'entity_id' not in data:
logger.warning("===== entity_id is required if you want to set something.")
else:
data = data.copy()
inputEntity = data.pop('entity_id')
inputStateObject = hass.states.get(inputEntity)
if inputStateObject:
inputState = inputStateObject.state
inputAttributesObject = inputStateObject.attributes.copy()
else: