Skip to content

Instantly share code, notes, and snippets.

View ericprud's full-sized avatar

Eric Prud'hommeaux ericprud

View GitHub Profile
{
"@context": {
"fitsense": "https://shapes.pub/shapes/activity.shex#",
"calories": "fitsense:calories",
"date": "fitsense:date",
"distance": "fitsense:distance",
"score": "fitsense:score",
"steps": "fitsense:steps"
}
}
{
"@context": {
"steps": "act:steps",
"score": "act:score",
"distance": "act:distance",
"date": "act:date",
"calories": "act:calories",
"act": "http://shapes.pub/shapes/activity.shex#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
@ericprud
ericprud / index.js.patch
Created October 30, 2017 12:35
add Event support to file-fetch
--- /home/eric/checkouts/linkeddata/rabel/node_modules/file-fetch/index-orig.js 2017-10-30 06:33:39.254504474 -0400
+++ /home/eric/checkouts/linkeddata/rabel/node_modules/file-fetch/index.js 2017-10-30 08:20:25.020709986 -0400
@@ -57,6 +57,30 @@
}
}
+const util = require('util')
+const EventEmitter = require('events')
+function send (options) {
+ if (!(this instanceof send))
@ericprud
ericprud / n3-js-forced-index-test.js
Created September 25, 2017 20:47
test of N3.js utility to find bug dependent on the order of hashes in the Store object.
var n3 = require('n3')
function describe (dlabel, d) {
d(it, xit)
function it (ilabel, i) {
try {
i()
++passing
} catch (e) {