made with esnextbin
This file contains 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
Verifying my Blockstack ID is secured with the address 1Jv5ct69UtLwD6PMLCUVLrMcFhDt5Sqpef https://explorer.blockstack.org/address/1Jv5ct69UtLwD6PMLCUVLrMcFhDt5Sqpef |
I hereby claim:
- I am douganderson444 on github.
- I am douganderson (https://keybase.io/douganderson) on keybase.
- I have a public key ASDYzIcjWzr3dkrBAcrkkpBUmu36maFvkp99W_2h1At-HQo
To claim this, I am signing this object:
This file contains 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
const Corestore = require('corestore') | |
const ram = require('random-access-memory') | |
const raf = require('random-access-file') | |
const store1 = new Corestore(ram) | |
const store2 = new Corestore(ram) | |
//const store2 = new Corestore(path => raf('store2/' + path)) | |
//const store3 = new Corestore('my-storage-dir') | |
const MountableHypertrie = require('mountable-hypertrie') | |
store1.ready(readyStores) |
This file contains 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
// Forge crypto package for node (https://www.npmjs.com/package/node-forge) | |
var forge = require('node-forge'); | |
var pki = forge.pki; | |
var rsa = forge.rsa; | |
var ed25519 = forge.pki.ed25519; | |
var pem2jwk = require('pem-jwk').pem2jwk | |
const jwk2pem = require('pem-jwk').jwk2pem | |
const pify = require('pify'); |
This file contains 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
deno install -A -f --unstable https://raw.githubusercontent.com/denjucks/deno-cef/master/electric.js |
This file contains 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
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'> | |
#stars | |
#stars2 | |
#stars3 | |
#title | |
%span | |
PURE CSS | |
%br | |
%span | |
PARALLAX PIXEL STARS |
This file contains 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
let config: { [Key: string]: any } = {} | |
const handlers: { [Key: string]: Function } = { | |
setConfig (key: string, value: any) { | |
config[key] = value | |
}, | |
getConfig () { | |
return config | |
}, |
This file contains 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
router.post(`/${config.rpcpath}`, async (context: Context) => { | |
const body = context.request.body() | |
let responseBody: any | |
if (body.type === 'json') { | |
let value = await body.value | |
let id = value?.id | |
let method = value?.method | |
if (!(method in handlers)) { | |
const message = `Method not found` | |
responseBody = { error: { message, code: -32601 }, jsonrpc: '2.0', id } |
This file contains 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
// import config from "config"; // cant do this until drollup lands | |
const config = { | |
"clientDir": "frontend/public", | |
"port": 8000, | |
"host": "localhost", | |
"rpcpath": "rpc-run" | |
} | |
const rpcPort = config.port |
OlderNewer