This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import {HueApi, lightState} from 'node-hue-api'; | |
import creds from './constants/credentials'; // JSON object containing Hue Bridge ip-address and user credentials | |
class Api { | |
constructor() { | |
this.api = new HueApi(creds.hue.hostname, creds.user.username); | |
this.lights = []; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const vpd = document.createElement('div'), | |
st = { | |
'position': 'fixed', | |
'right': '0', | |
'top': '0', | |
'border': '5px solid #ccc', | |
'background': '#ccc', | |
'font-family': 'Arial', | |
'font-size': '13px', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ColorContrast | |
* Check if your text is readable on your background for colorblind people | |
* | |
* Usage: | |
* colorContrast(foregroundColor, backgroundColor) | |
* if true, the contrast is sufficient | |
*/ | |
const hexToRgb = hex => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
GOTO checkAdmin | |
:: Check if batch-file is run with admin privileges | |
:checkAdmin | |
FSUTIL dirty query %systemdrive% >nul 2>&1 | |
IF %errorLevel% == 1 ( | |
GOTO isNotAdmin | |
) ELSE ( | |
GOTO isAdmin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adarys, Alequo, [email protected] | |
Ahai, Azor, [email protected] | |
Allyrion, Delonne, [email protected] | |
Allyrion, Ryon, [email protected] | |
Alyn, Sour, [email protected] | |
Ambrose, Alyn, [email protected] | |
Ambrose, Arthur, [email protected] | |
Ambrose, Aubrey, [email protected] | |
Ambrose, Edmund, [email protected] | |
Antaryon, Ferrego, [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Javascript goes here | |
*/ |
NewerOlder