Instantly share code, notes, and snippets.

View ex-session-client.js
const crypto = require('crypto');
const fs = require('fs');
const path = require('path');
const tls = require('tls');
const util = require('util');
function read(file, encoding) {
return fs.readFileSync(path.resolve(__dirname, file), encoding);
}
View .gitignore
echo-server-epoll
echo-server-poll
talk
talk.dSYM
View gist:97f376a0622a894c86d8dde38e350586
make -C out BUILDTYPE=Release V=1
touch d6a97d927244121b490e50fb236a2a940b280263.intermediate
LD_LIBRARY_PATH=/home/sam/w/core/node/out/Release/lib.host:/home/sam/w/core/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/gypfiles; mkdir -p /home/sam/w/core/node/out/Release/obj/gen/src; python ../third_party/inspector_protocol/CheckProtocolCompatibility.py --stamp "/home/sam/w/core/node/out/Release/obj/gen/src/js_protocol.stamp" ../src/inspector/js_protocol.json
touch c8eaca2fd41a0a4ac1d87c52bdf44326cc41915f.intermediate
LD_LIBRARY_PATH=/home/sam/w/core/node/out/Release/lib.host:/home/sam/w/core/node/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/gypfiles; mkdir -p /home/sam/w/core/node/out/Release/obj/gen/torque-generated; "/home/sam/w/core/node/out/Release/torque" ../src/builtins/base.tq ../src/builtins/array.tq ../src/builtins/array-copywithin.tq ../src/builtins/array-foreach.tq ../src/builtins/array-lastindexof.tq ../src/builtins/arra
View gist:129d11b95294bfbd003517464cc29b71
core/node (master *% u=) % make V8_IMMINENT_DEPRECATION_WARNINGS=0 V8_DEPRECATION_WARNINGS=0 2>&1 | grep V8_DEPRE
g++ -o /home/sam/w/core/node/out/Release/obj.target/v8_snapshot/geni/embedded.o /home/sam/w/core/node/out/Release/obj.target/v8_snapshot/geni/embedded.cc '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-DV8_GYP_BUILD' '-DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=0' '-DOPENSSL_THREADS' '-DV8_TARGET_ARCH_X64' '-DV8_EMBEDDER_STRING="-node.5"' '-DENABLE_DISASSEMBLER' '-DV8_PROMISE_INTERNAL_FIELD_COUNT=1' '-DV8_INTL_SUPPORT' '-DV8_CONCURRENT_MARKING' '-DDISABLE_UNTRUSTED_CODE_MITIGATIONS' '-DV8_EMBEDDED_BUILTINS' '-DV8_EMBEDDED_BYTECODE_HANDLERS' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_STATIC_IMPLEMENTATION=1' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/v8 -I../. -I/home/sam/w/core/node/out/Release/obj/gen -I../deps/icu-small/source/i18n -I../deps/icu-small/source/common -pthread -Wall -Wextra -Wno-unused-parameter -m64 -fno-strict-aliasing -m64 -O3 -fno-om
View dsl-print
#!/usr/bin/env lua
--[[
dsl-print [some.dsl]
Example of a lua DSL language, that can use function call or assignment to define
keys, and uses call sequence to implicitly define nesting.
]]
function dsl(code, file)
local loaded, estr = loadstring(code, file)
View argp-subcommand.c
/*
* Sample command line parser.
*
* Implements sub-commands with their own option handlers.
*
*/
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
View fabric-node4-support.diff
diff --git a/fabric-ca-client/package.json b/fabric-ca-client/package.json
index b4f0ffb..2642c3d 100644
--- a/fabric-ca-client/package.json
+++ b/fabric-ca-client/package.json
@@ -7,11 +7,9 @@
"url": "http://gerrit.hyperledger.org/r/fabric-sdk-node"
},
"engines": {
- "node": ">=6.9.0 <7.0",
+ "node": ">=4.5.0",
View package.json
{
"name": "fu",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Sam Roberts <vieuxtech@gmail.com>",
"license": "MIT",
View v6.10.3-did-not-land.md
  • [757bf484ff] - doc/tools: fix more type inconsistencies (Roman Reiss) #11697
  • [18599fc3d7] - doc/url: various improvements to WHATWG API (Timothy Gu)
  • [e7d37a3f09] - tools/doc: add more intrinsic and custom types (Timothy Gu)
  • [1043f5d08e] - assert: name anonymous functions (Miguel Angel Asencio Hurtado) #9051
  • [94c4323d56] - async_wrap: close the destroy_ids_idle_handle_ (René Schünemann) #10385
  • [5379b9da11] - async_wrap: call destroy() callback in uv_idle_t (Trevor Norris) #9753
  • [[`5157a5cee
View v6.10.3-did-not-land.md

{ _: [ 'upstream/v6.10.3-proposal', 'upstream/v7.x' ], g: true, 'filter-release': true, 'exclude-label': 'semver-major,semver-minor,meta,dont-land-on-v6.x' }