I hereby claim:
- I am 131 on github.
- I am 131 (https://keybase.io/131) on keybase.
- I have a public key whose fingerprint is 5271 EBE8 2E2F 790E 3D2C 50FA D2DF A7DB 5CF5 691A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
"use strict"; | |
var values = function(obj){ | |
var val = [] | |
Object.keys(obj).forEach(function(key) { | |
val.push(obj[key]); | |
}); | |
return val; | |
}; |
var ClapEngine = require('clap-trigger'); | |
var hue = require("node-hue-api"); | |
var HueApi = hue.HueApi; | |
var lightState = hue.lightState; | |
var hostname = "192.168.131.47"; | |
var user_id = 'iwonttell'; | |
var api = new HueApi(hostname, user_id); | |
var trigger = new ClapEngine(); |
<? | |
function stop(){ | |
if(!file_exists(self::PID_FILE)) | |
return; | |
$pid = file_get_contents(self::PID_FILE); | |
posix_kill($pid, SIGTERM); | |
unlink(self::PID_FILE); | |
rbx::ok("Stopped $pid"); | |
} |
Long story short, in javascript "this" refer to the thing-on-the-left-side-of-the-dot. period.
So, when writing ES6 classes & statics methods, use "this" to refer to the static classe.
class User {
Index: mod_proxy.c | |
=================================================================== | |
--- mod_proxy.c (revision 1205172) | |
+++ mod_proxy.c (working copy) | |
@@ -965,7 +965,8 @@ | |
access_status = proxy_run_scheme_handler(r, worker, | |
conf, url, | |
ents[i].hostname, | |
- ents[i].port); | |
+ ents[i].port, |
"use strict"; | |
//this requires node 10 magical | |
const fs = require('fs'); | |
const path = require('path'); | |
const promisify = require('nyks/function/promisify'); | |
remote_read: | |
- url: https://prometheus.gra1.metrics.ovh.net/remote_read | |
basic_auth: | |
username: '' | |
password: '<redacted>' | |
remote_write: | |
- url: https://prometheus.gra1.metrics.ovh.net/remote_write | |
basic_auth: |
<textarea required="required" autocorrect="off" autocapitalize="off" name="username" class="form-control" placeholder="Your username" rows="1" cols="20" wrap="off"></textarea>
<textarea required="required" autocorrect="off" autocapitalize="off" name="password" class="form-control password" placeholder="Your password" rows="1" cols="20" wrap="off"></textarea>
@font-face {