Skip to content

Instantly share code, notes, and snippets.

View kumavis's full-sized avatar
🐉
!

kumavis kumavis

🐉
!
View GitHub Profile

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
https://hangouts.google.com/hangouts/_/lnkpoxjdlng2dbp5clzvjwyj4ue
@kumavis
kumavis / engine2.js
Last active December 25, 2016 19:35
// example middleware
engine.use(function *(req, res, next) {
// make changes to request
// eg: check cache hit
yield next;
// read the result
// eg: populate cache
});
// cache middleware
BHHMO|Aetna Basic HMO
HMO1|2017 Aetna DC Bronze, Silver and Gold Open Access Health Network Only
OAMC|2017 Aetna DC Bronze, Silver and Gold Open Access Managed Choice
MPPO|2017 Aetna DC Silver and Gold PPO
QPOS1|2017 Aetna DE Bronze, Silver and GoldOpen Access Health Network Option
MPPO|2017 Aetna DE Bronze, Silver and Gold PPO
HMO1|2017 Aetna MD Bronze, Silver and Gold Open Access Health Netowrk Only
MPPO|2017 Aetna MD Bronze, Silver and Gold PPO
HMO1|2016 Aetna DC Bronze, Silver and Gold Open Access Health Network Only
OAMC|2016 Aetna DC Bronze, Silver and Gold Open Access Managed Choice

notes on data flow primitives

fundamental elements

  • message: any value (string, obj, etc)
  • channel: uni-directional paths that messages travel across

composition

  • multichannel: you can wrap multiple channels in a single channel by wrapping the message with metadata
@kumavis
kumavis / index.md
Created December 7, 2015 01:35
ethereum rpc methods, in MetaMask ProviderEngine categories

hardcoded

  • web3_clientVersion
  • net_version
  • net_listening
  • net_peerCount
  • eth_protocolVersion
  • eth_hashrate
  • eth_mining
  • eth_syncing
@kumavis
kumavis / gist:ab8b7ce7d20e2be17417
Last active December 7, 2015 01:01
ethereum rpc methods and their use in web3.js

web3 properties

  • web3_clientVersion
  • net_version
  • eth_protocolVersion
  • shh_version

watches

  • eth_newBlockFilter
  • eth_newPendingTransactionFilter
  • eth_newFilter
@kumavis
kumavis / index.js
Created October 1, 2015 18:25
requirebin sketch
var createGame = require('voxel-engine');
var texturePath = require('programmerart-textures')('');
var game = createGame({
texturePath: texturePath,
materials: [
['blocks/grass_top', 'blocks/dirt', 'blocks/grass_side'],
'blocks/stone',
'blocks/dirt']
});
var createPlayer = require('voxel-player')(game);
@kumavis
kumavis / index.js
Created October 1, 2015 18:24
requirebin sketch
var createGame = require('voxel-engine');
var texturePath = require('programmerart-textures')('');
var game = createGame({
texturePath: texturePath,
materials: [
['blocks/grass_top', 'blocks/dirt', 'blocks/grass_side'],
'blocks/stone',
'blocks/dirt']
});
var createPlayer = require('voxel-player')(game);

OSX Config

defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)

Applications / Utilities

  • Oh My Zsh
  • Homebrew
  • Caskroom