Skip to content

Instantly share code, notes, and snippets.

View danmandle's full-sized avatar

Dan Mandle danmandle

View GitHub Profile
@danmandle
danmandle / laundry.yaml
Created August 30, 2018 15:06
Laundry Automation for Home Assistant using Amazon Dash buttons
- alias: Washer in Use Power Start
trigger:
- platform: numeric_state
entity_id: sensor.clothes_washer_power
above: 3.5
for:
seconds: 30
condition:
condition: state
entity_id: input_boolean.washer_in_use
@danmandle
danmandle / pokerhand.php
Last active August 29, 2015 13:56
Rally Software Coding Exercise by Dan Mandle
<?php
/*
NOTE: This is designed to be run from the terminal.
------------
-Exercise 2-
------------
Write some code that will evaluate a poker hand and determine its rank.