Skip to content

Instantly share code, notes, and snippets.

🐉
!

kumavis kumavis

🐉
!
Block or report user

Report or block kumavis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kumavis
kumavis / read-only-membrane.js
Last active Nov 19, 2019
read-only handler for es-membrane
View read-only-membrane.js
"use strict"
const { Membrane } = require('es-membrane')
// create raw object to be protected by membrane
const rawObj = { secure: true }
// create membrane to manage interaction
const membrane = new Membrane()
@kumavis
kumavis / membrane_module.js
Last active Nov 18, 2019
simple membrane module system
View membrane_module.js
const { Membrane } = require('es-membrane')
const { defineModule, getRawModule } = createModuleSystem()
//
// define modules
//
// module X
defineModule('x', (require) => {
@kumavis
kumavis / background.js
Last active Nov 14, 2019
WebExtension Manifest v3
View background.js
// // Called when the user clicks on the browser action.
// chrome.action.onClicked.addListener(function(tab) {
// // No tabs or host permissions needed!
// console.log('Turning ' + tab.url + ' red!');
// // chrome.tabs.executeScript({
// // code: 'document.body.style.backgroundColor="red"'
// // });
// });
@kumavis
kumavis / experiment1.js
Last active Aug 21, 2019
ses sloppyGlobals mini kernel
View experiment1.js
const test = require('tape-promise').default(require('tape'))
const SES = require('../lib/ses.umd.js')
const realm = SES.makeSESRootRealm()
test(async t => {
const globalStore = {}
runModuleA()
View dht findProviders query.md

test details

contentRouting.findProviders

real browser dht network network size 60 kbucket 20 maxPeers 40 randomWalk off visible connection churn due to maxPeers

View contentRounting-findProviders.md

test details

contentRouting.findProviders

real browser dht network network size 85 kbucket 20 maxPeers 40 randomWalk off visible connection churn due to maxPeers

View raven-url-rewrite.js
const client = Raven.config(ravenTarget, {
release,
transport: function(opts) {
// modify report urls
const report = opts.data
rewriteReportUrls(report)
// make request normally
client._makeRequest(opts)
}
})
View roadmap.md

metamask roadmap

features

  • app features: tokens, voting, udapp
  • tx analysis trace and ABI matching (for future/unsigned and past/confirmed)
  • detecting relevant txs for history (received eth, tokens)
  • key mgmt (hardware, cloud, dao proposal generator)
  • multichain support

platform

View gist:f8d1b92efe38c3522067f2b34b0a7bd1

Client-Side Services

This is a proposal of a pattern for building interlinking web apps. It would allow sandboxed integration with third-party services running on the same computer.

This would enable:

  • services to manage their own client-side secrets (e.g. private keys)
  • building shared caches
  • sharing p2p network resources
View gist:b2e75fa920bddd29eeb3f74e8af02da4
https://hangouts.google.com/hangouts/_/lnkpoxjdlng2dbp5clzvjwyj4ue
You can’t perform that action at this time.