Skip to content

Instantly share code, notes, and snippets.

Sam Roberts sam-github

Block or report user

Report or block sam-github

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .gitignore
echo-server-epoll
echo-server-poll
talk
talk.dSYM
@sam-github
sam-github / dsl-print
Created Mar 6, 2012
Example of a lua DSL language
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)
@sam-github
sam-github / argp-subcommand.c
Created Dec 4, 2014
argp subcommand example
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 gist:e8e9b9a801ccb96c6f59a8bda0358623
|0x1e190da <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+26> larl %r1,0x3782c70 <_ZN2v88internal12_GLOBAL__N_121sticky_embedded_blob_E> |
|0x1e190e0 <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+32> lgrl %r9,0x376fd30 |
|0x1e190e6 <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+38> lrl %r12,0x33d2492
* |0x1e190ec <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+44> ltg %r1,0(%r1) |
|0x1e190f2 <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+50> je 0x1e191bc <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+252> |
|0x1e190f6 <_ZN2v88internal7Isolate29InitializeDefaultEmbeddedBlobEv+54> larl %r1,0x3782c78 <_ZN2v88internal12_GLOBAL__N_137current_embedded_blob_refcount_mutex|
|0x1e190fc <_ZN2v88internal7Isolate29InitializeDefaultEmbed
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 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 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
You can’t perform that action at this time.