I hereby claim:
- I am okdistribute on github.
- I am karissa (https://keybase.io/karissa) on keybase.
- I have a public key ASCf1pJGg7DYvk-6KH7gaqfsJ7uA7pWuscDytYFMiec6yAo
To claim this, I am signing this object:
| { | |
| "name": "server", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "", | |
| "license": "ISC", |
| package main | |
| import "fmt" | |
| import "unicode/utf8" | |
| func main() { | |
| fmt.Println(len("Hello World")) | |
| fmt.Println(utf8.RuneCountInString("Hello World")) | |
| fmt.Println(len("读写汉字 - 学中文")) | |
| fmt.Println(utf8.RuneCountInString("读写汉字 - 学中文")) |
| { | |
| "name": "kappa-workshop", | |
| "description": "P2P collaboration workshop", | |
| "license": "MIT", | |
| "dependencies": { | |
| "chalk": "^2.4.1", | |
| "hypercore": "^8.3.0", | |
| "kappa-core": "^6.0.0", | |
| "kappa-view-kv": "^2.0.2", | |
| "kappa-view-list": "^1.2.0", |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
When I create a dat, it gives me a dat.json file. The dat.json file currently describes a single dat. For example,
From the existing dat.json spec:
{
"url": "dat://37ad8eb8d7f...",
"title": "This is My Dataset",
"description": "This is a one or two line description of the archive for Human People",
"author": "Karissa McKelvey <[email protected]>"
}
| var webrtc = require('webrtc-swarm') | |
| var signalhub = require('signalhub') | |
| var hyperdrive = require('hyperdrive') | |
| var memdb = require('memdb') | |
| var pump = require('pump') | |
| var DEFAULT_SIGNALHUBS = 'https://signalhub.mafintosh.com' | |
| var drive = hyperdrive(memdb()) |
| test('prep', function (t) { | |
| rimraf.sync(path.join(fixtures, '.dat')) // for previous failed tests | |
| var myDat = dat(fixtures, function (err, node) { | |
| t.error(err, 'no error') | |
| shareDat = node | |
| shareDat.once('key', function (key) { | |
| console.log('THIS ONE HAPPENS') | |
| shareKey = key | |
| t.end() | |
| }) |
| const choo = require('choo') | |
| const mainView = require('./main') | |
| const app = choo() | |
| app.model({ | |
| namespace: 'message', | |
| state: { | |
| server: 'rehydration has kicked in, server data was tossed', |