This file contains hidden or 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
642 |
This file contains hidden or 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 streamdata = require('streamdata.io-events') | |
var hyperdb = require('hyperdb') | |
var ram = require('random-access-memory') | |
var diffs = require('diffs-to-string') | |
var db = hyperdb(function (filename) { | |
return ram() | |
}) | |
var SSE = streamdata('http://stockmarket.streamdata.io/v2/prices', |
This file contains hidden or 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
scp -r user@your.server.example.com:/path/to/foo /home/user/Desktop/ |
This file contains hidden or 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
/* JSONPath 0.8.5 - XPath for JSON | |
* | |
* Copyright (c) 2007 Stefan Goessner (goessner.net) | |
* Licensed under the MIT (MIT-LICENSE.txt) licence. | |
* | |
* Proposal of Chris Zyp goes into version 0.9.x | |
* Issue 7 resolved | |
*/ | |
function jsonPath(obj, expr, arg) { | |
var P = { |
This file contains hidden or 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
/usr/local/etc/dnsmasq.conf |
This file contains hidden or 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
async function dateStream () { | |
var data | |
var read = dates() | |
while (data = await read()) { | |
console.log(data) | |
} | |
} | |
function dates () { |
This file contains hidden or 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 get = require('simple-get') | |
var parallel = require('run-parallel') | |
var trumpet = require('trumpet') | |
var urls = { | |
domains: 'https://data.iana.org/TLD/tlds-alpha-by-domain.txt', | |
animals: 'https://en.wikipedia.org/wiki/List_of_animal_names' | |
} | |
var getUrls = [] |
This file contains hidden or 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 through = require('throug2') | |
var fromDom = require('from2-dom') | |
var concat = require('concat-stream') | |
fromDom(document.querySelectorAll('p')) | |
.pipe(through()) | |
.pipe(concat(function (buf) { | |
console.log(buf) | |
}) |
This file contains hidden or 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 stream = require('stream') | |
var inherits = require('inherits') | |
inherits(Upper, stream.Transform) | |
function Upper () { | |
stream.Transform.call(this) | |
} | |
Upper.prototype._transform = function (data, enc, cb) { |
This file contains hidden or 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
somejunk | <! /> | ||
---|---|---|---|
nope | |||
yes | yup | yeah | |
ok | ok | ok! |