Skip to content

Instantly share code, notes, and snippets.

View beauwest's full-sized avatar

Beau West beauwest

View GitHub Profile
@beauwest
beauwest / always_on_switch.yaml
Created July 30, 2021 16:06
Home Assistant: Always On Switch
blueprint:
name: Always On Switch
description: Keep the selected switch on, even when it is turned off. This should be used for switches you never want to be turned off.
domain: automation
input:
target_switch:
name: Target Switch
description: The switch that will always be kept on.
selector:
entity:
@beauwest
beauwest / webcomponent.html
Created October 30, 2019 13:03
FluentReportsGenerator web components example
<head>
<meta charset="utf-8">
<title>fluentReports</title>
<meta name="description" content="Node and Browser based Reporting engine">
<meta name="keywords" content="fluentReports pdf report development data driven javascript engine node node.js io.js browser chrome firefox safari">
<meta name="author" content="Nathanael Anderson">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="./fluentReportsGenerator.js"></script>
<style type="text/css" media="screen">
body {
@beauwest
beauwest / index.html
Last active May 12, 2016 14:29
Example for /dmauro/Keypress/issues/114
<!doctype html>
<meta charset="utf-8">
<script src="http://cdn.rawgit.com/dmauro/Keypress/master/keypress.js"></script>
<script>
window.onload = function () {
var counter = 0,
counterElement = document.getElementById('counter'),
listener = new window.keypress.Listener();
listener.register_combo({
@beauwest
beauwest / test-change-listener.html
Last active January 28, 2016 18:29
Test Change Listener
<!doctype html>
<meta charset="utf-8">
<base href="http://polygit.org/polymer+v1.2.4/components/">
<script src="webcomponentsjs/webcomponents-lite.js"></script>
<link href="polymer/polymer.html" rel="import">
<script>
addEventListener('WebComponentsReady', function () {
window.InputBehavior = {
properties: {
@beauwest
beauwest / polymer-memory-leak.html
Created November 24, 2015 18:24
Example of the Polymer `down` gesture memory leak
<!DOCTYPE html>
<html>
<head>
<title>Polymer</title>
<script src="http://polygit.org/components/webcomponentsjs/webcomponents-lite.js"></script>
<link href="http://polygit.org/polymer+v1.2.3/components/polymer/polymer.html" rel="import">
</head>
<body>
<dom-module id="x-element">
/********************************************************************************
Copyright (C) 2013 Christophe Jeannin <chris.j84@free.fr>
Hugh Bailey <obs.jim@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,