I hereby claim:
- I am theadam on github.
- I am theadam (https://keybase.io/theadam) on keybase.
- I have a public key whose fingerprint is 4CF8 C75F A813 F781 B305 EA46 659B 8613 5848 424F
To claim this, I am signing this object:
blueprint: | |
name: Lutron Pico 5 Button - Light Entity Control | |
description: "This blueprint allows for the association of up to four Lutron Pico 5 Button (model PJ2-3BRL-GXX-X01) remotes with a light entity. It is designed to simulate the operation of a standard Lutron Caseta wall dimmer including the press and hold functionality for the raise/lower buttons. It allows for the control over the brightness step percentage and transition speed and the assignment of any action to the middle button." | |
source_url: https://gist.github.com/theadam/25d5a2acb9e6f167648871367d23bde4 | |
domain: automation | |
input: | |
pico_1: | |
name: Pico Device |
I hereby claim:
To claim this, I am signing this object:
type generator 'a = | |
| End | |
| Next 'a (unit => generator 'a); | |
let rec intsFrom ::start :generator int => Next start (fun () => intsFrom start::(start + 1)); | |
let ints = intsFrom start::0; | |
let rec tap fn gen => | |
switch gen { |
made with esnextbin
made with esnextbin
made with esnextbin
// Try out by visiting: https://esnextb.in/?gist=e98c7a5295d3e940114ee87b7c273fe2 | |
/* | |
* Recursively flattens each item in the array. | |
*/ | |
function flatten(array) { | |
if (array.length === 0) return array; | |
const [head, ...tail] = array; | |
if (Array.isArray(head)) return flatten(head).concat(flatten(tail)); |
made with esnextbin
made with esnextbin
made with esnextbin