I hereby claim:
- I am Frando on github.
- I am Frando (https://keybase.io/frando) on keybase.
- I have a public key whose fingerprint is 6672 052F 6DF2 AC7E 2948 CB40 5CDC 80F9 A1AF ED95
To claim this, I am signing this object:
var hyperdb = require('hyperdb') | |
var sub = require('subhyperdb') | |
var hyperdrive = require('hyperdrive') | |
var hypergraph = require('hyper-graph-db') | |
var hyperdriveMessages = require('hyperdrive/lib/messages') | |
var dbName = process.argv[2] | |
var op = process.argv[3] | |
if (op !== 'read' && op !== 'write') { |
var flatten = require('.') | |
var bulk = require('bulk-write-stream') | |
var stream = bulk.obj(flatten(write)) | |
function write(batch, cb) { | |
batch.forEach(function(obj) { | |
console.log(obj) | |
}) | |
cb(null) |
message Entry { | |
message Feed { | |
required bytes key = 1; | |
} | |
message Feeds { | |
repeated Feed feeds = 1; | |
optional Feed contentFeed = 2; | |
} |
# put this in ~/.config/systemd/user/battery-warn.service | |
# and adjust the line in exec-start | |
[Unit] | |
Description=Battery warning | |
[Service] | |
Type=oneshot | |
Environment="DISPLAY=:0" "XAUTHORITY=/home/bit/.Xauthority" | |
ExecStart=/home/.../battery.sh |
NANOBENCH version 2 | |
> /usr/bin/node bench.js | |
# write fs 5000 * 4K sequentially | |
ok ~262 ms (0 s + 261710236 ns) | |
# write hyperdrive 5000 * 4K sequentially | |
ok ~3.65 s (3 s + 653388561 ns) | |
# write client 5000 * 4K sequentially |
{ | |
"name": "hyperswarm-replication-test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"keywords": [], | |
"author": "", | |
"license": "MIT", | |
"dependencies": { | |
"@hyperswarm/replicator": "^1.1.0", |
I hereby claim:
To claim this, I am signing this object:
const tape = require('tape') | |
const hypercore = require('hypercore') | |
const ram = require('random-access-memory') | |
const { runAll, replicate } = require('./lib/util') | |
const { Kappa } = require('..') | |
const createIndexer = require('../sources/hypercore-sparse') | |
const topics = ['red', 'blue', 'green', 'yellow'] |
// This is an example for a sparse source for kappa5 pubsub | |
const Bitfield = require('bitfield-db') | |
const nanoiterator = require('nanoiterator') | |
const ram = require('random-access-memory') | |
module.exports = function createIndexer (handlers, opts) { | |
return new SparseIndexer(handlers, opts) | |
} |
const tape = require('tape') | |
const { Kappa } = require('..') | |
const { runAll } = require('./lib/util') | |
tape.only('simple source', t => { | |
const kappa = new Kappa() | |
kappa.use('view1', makeSimpleSource(), makeSimpleView()) | |
kappa.use('view2', makeSimpleSource(), makeSimpleView()) | |
kappa.api.view1.source.push(1) |