I hereby claim:
- I am chad3814 on github.
- I am chad3814 (https://keybase.io/chad3814) on keybase.
- I have a public key ASCCzcAKbW362pseb1Cjk3ZscwaGyBPJPwXemS2N-NN7gQo
To claim this, I am signing this object:
import fs from 'fs'; | |
import http from 'http'; | |
import stream from 'stream'; | |
class CountingStream extends stream.PassThrough { | |
constructor(options) { | |
super(options); | |
this._bytes_in = 0; | |
this._bytes_out = 0; | |
} |
'use strict'; | |
class Color { | |
constructor (name, multiplier) { | |
this.name = name; | |
this.multiplier = multiplier; | |
} | |
} | |
let colors = [ |
{ | |
"targets": [ | |
{ | |
"target_name": "AsyncEmitter", | |
"sources": [ "emitter.cc" ], | |
"include_dirs": [], | |
"dependencies": [], | |
"cflags!": [ "-fno-exceptions" ], | |
"cflags_cc!": [ "-fno-exceptions" ], |
I hereby claim:
To claim this, I am signing this object:
var key_file = fs.readFileSync(path.resolve(__dirname, '..', 'ssl', 'non_ev_domains.key')); | |
var cert_file = fs.readFileSync(path.resolve(__dirname, '..', 'ssl', 'non_ev_domains.crt')); | |
var ca_files = [ | |
fs.readFileSync(path.resolve(__dirname, '..', 'ssl', 'COMODORSADomainValidationSecureServerCA.crt')), | |
fs.readFileSync(path.resolve(__dirname, '..', 'ssl', 'COMODORSAAddTrustCA.crt')) | |
]; | |
var credentials = { | |
key: key_file, | |
cert: cert_file, | |
ca: ca_files |
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
var not = function (x) { | |
if (x) { | |
return false; | |
} | |
return true; | |
}; | |
var and = function (a, b) { |
'use strict'; | |
var http = require('http'); | |
var sio = require('socket.io'); | |
var app = http.createServer(function (req, res) { | |
if (req.url === '/') { | |
res.writeHead(200, { | |
'Content-Type': 'text/html' | |
}); |
'use strict'; | |
var path = require('path'); | |
var jsdom = require('jsdom'); | |
var dumpBody = function (document) { | |
console.log('contents of the document:'); | |
console.log(document.body.innerHTML); | |
}; |
// This is from my comment here: http://wolfram.kriesing.de/blog/index.php/2008/javascript-remove-element-from-array/comment-page-2#comment-466561 | |
/* | |
* How to delete items from an Array in JavaScript, an exhaustive guide | |
*/ | |
// DON'T use the delete operator, it leaves a hole in the array: | |
var arr = [4, 5, 6]; | |
delete arr[1]; // arr now: [4, undefined, 6] |