Be able to control MiLight bulbs with Amazon Alexa via the MiLight Wifi Bridge.
- At least one MiLight Bulb: http://www.limitlessled.com/shop/rgbw-color-led-light-bulb/
| // When a generator function is decorated or composed, the composed function will not | |
| // work unless the decorator explicitly supports decorating a generator function. | |
| // | |
| // This example shows how to wrap an async generator function as an async function, pass it | |
| // to the decorators and wrap the result in an async generator synchronized with the original one. | |
| const compose = (...functions) => | |
| functions.reverse().reduce((decorated, decorator) => decorator(decorated)); | |
| const decorateGeneratorFunction = (...decorators) => (generatorFunction) => { |
| {"lastUpload":"2020-01-17T11:31:19.183Z","extensionVersion":"v3.4.3"} |
Be able to control MiLight bulbs with Amazon Alexa via the MiLight Wifi Bridge.
| #!/usr/bin/env node | |
| /** @author Adrian Moreno (https://github.com/adriem) */ | |
| const https = require('https') | |
| const fs = require('fs') | |
| const urls = process.argv.slice(2).filter(arg => arg !== '-v' && arg !== '--verbose') | |
| const verbose = process.argv.includes('-v') || process.argv.includes('--verbose') |
I hereby claim:
To claim this, I am signing this object:
| # ============================================================================== | |
| # File: .tmux.conf | |
| # Author: Adrian Moreno | |
| # Repo: https://github.com/adriem/shell-utilities | |
| # ============================================================================== | |
| # Global settings | |
| set -g default-terminal "screen-256color" # Enable 256 color terminal emulator | |
| set -g status-interval 2 # Status bar refresh interval | |
| set -g set-titles on # Set window title |
| # Copy this to /etc/motd |
| [core] | |
| eol = lf | |
| autocrlf = input | |
| safecrlf = false | |
| pager = less | |
| editor = /usr/bin/vim | |
| [user] | |
| email = _EMAIL_ | |
| name = _NAME_ |
| div > .vimiumHintMarker { | |
| padding: 0.25em 0.5em; | |
| background-color: #ffaf00; | |
| border: 0; | |
| border-radius: 2px; | |
| box-shadow: inset 0 -2px 0 #d78700; | |
| background-image: none; | |
| } | |
| div > .vimiumHintMarker span { |