This document is now maintained at https://github.com/awwright/node-simplex-pair
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"; | |
class A { | |
#writableSide; | |
#writableSideInit = false; | |
constructor(x) { | |
this.#writableSide = {a: x}; | |
} | |
initWritableSide() { | |
if(this.#writableSideInit) throw new Error('writableSide already initialized'); |
This document now maintained at: https://github.com/awwright/http-progress
- No more arguments over how many spaces an indent is, and no more inconstistent indenting throughout the project, no more problems when copying/pasting examples. Indent is one tab, period. An indent will never be two tabs, ever.
- You can't accidently highlight half a tab
Tabs must only be found at the beginning of a line.
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
OUT_BINNAME ?= node | |
# Default target | |
all: $(OUT_BINNAME) | |
printall: | |
@echo $(NODE_OBJECTS) | |
# Specify BUILDTYPE=Release on the command line for a release build. |
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
spinner = { | |
fn: function () { | |
var char = spinner.chars[++spinner.offset%spinner.chars.length]; | |
process.stdout.write('\x1B[s' + char + '\x1B[u'); | |
}, | |
chars: ['—', '\\', '|', '/'], | |
offset: 0 | |
timer: null, | |
speed: 100 |
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
var tls = require('tls'); | |
var net = require('net'); | |
var events = require('events'); | |
var util = require('util'); | |
function Connection(options) { | |
this.maxMessageSize = options && options.maxMessageSize || 1024*1024*32; | |
var self = this; |
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
// Would prefer to use an actual Function-subclass a lá `from`, so that I don't have to manually | |
// attach a .toString() to each instance; but this will do for the moment. | |
// FIXME: Will currently error out if you curry in more arguments than the function needs | |
define(Function.prototype, 'curry', function(){ | |
var self = this; | |
var result = new Function('bound', 'args', | |
"return this.apply(" | |
+" typeof bound === 'object' || typeof bound === 'function'? bound:this" | |
+" , curried.concat([].slice.call(args)) )" |
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
var util=require('util'); | |
module.exports = function protoinspect(object, showHidden, depth, colors) { | |
return util.inspect(object, showHidden, depth, colors) + '\n' + (Object.getPrototypeOf(object)!=Object.prototype ? protoinspect(Object.getPrototypeOf(object), showHidden, depth, colors) : ''); | |
} | |
module.exports.log = function protoinspectLog(object, showHidden, depth){ | |
console.log(module.exports(object, showHidden, depth, true)); | |
} |
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
GLOBAL[[[]+[][[[]+/!/[[[]+!![]][+[]][+[]]+[[]+![]][+[]][+!![]+!![]+!![]+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]]][+[]][+!![]+!![]+!![]]+[[]+/!/[[[]+!![]][+[]][+[]]+[[]+![]][+[]][+!![]+!![]+!![]+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]]][+[]][+!![]+!![]+!![]+!![]+!![]+!![]]+[[]+[][[]]][+[]][+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]+[[]+!![]][+[]][+!![]]+[[]+[][[]]][+[]][+[]]+[[]+/!/[[[]+!![]][+[]][+[]]+[[]+![]][+[]][+!![]+!![]+!![]+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]+[[]+/!/[[[]+!![]][+[]][+[]]+[[]+![]][+[]][+!![]+!![]+!![]+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]]][+[]][+!![]+!![]+!![]+!![]+!![]+!![]]+[[]+!![]][+[]][+!![]]][[[]+/!/[[[]+!![]][+[]][+[]]+[[]+![]][+[]][+!![]+!![]+!![]+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]]][+[]][+!![]+!![]+!![]]+[[]+/!/[[[]+!![]][+[]][+[]]+[[]+![]][+[]][+!![]+!![]+!![]+!![]]+[[]+![]][+[]][+!![]+!![]+!![]]+[[]+!![]][+[]][+[]]]][+[]][+ |