Skip to content

Instantly share code, notes, and snippets.

View jozanza's full-sized avatar
👾
pixels + p2p

Josiah Savary jozanza

👾
pixels + p2p
View GitHub Profile
@jozanza
jozanza / goodbye_ipfw.md
Last active August 29, 2015 14:08
Port forwarding local traffic on OS X Yosemite

1. Create an anchor file

rdr pass on lo0 inet proto tcp from any to any port {to} -> 127.0.0.1 port {from}

Be sure to replace {to} and {from} with with actual port numbers. Also, make sure there is a newline at the end of your anchor file.

2. Run it

@jozanza
jozanza / my-redux.js
Created December 23, 2015 22:17
Roll Your Own Redux
// mkdir my-redux
// cd my-redux && npm init
'use strict'
const readline = require('readline');
const rl = readline.createInterface(
process.stdin,
process.stdout
);
import React, { Component } from 'react';
import blessed from 'blessed';
import { render } from 'react-blessed';
class App extends Component {
componentDidMount() {
const convo = [
'Me: hey mom',
'Mom: did you do your laundry?',
'Me: no.',
'use strict'
const mapOf2dArray = start => w => xs => {
let id = start;
let i = xs.length;
const map = new Map();
let n = 0
while (n <= start) {
map.set(n, null);
n++;
let data = new WeakMap();
class List {
constructor(...values) {
this.first = 0;
this.last = values.length-1;
this.size = values.length;
data.set(this, new Map(values.map((x,i)=>[i,x])));
}
static of(values) {
@jozanza
jozanza / pokemon.csv
Last active July 28, 2016 06:15
Pokémon I like to get notified about
pikachu
mew
mewtwo
dragonite
dragonair
dratini
snorlax
lapras
moltres
zapdos

Proxy / Reflect

new Proxy(target, handler)
// => object
Proxy.revokable(target, handler)
@jozanza
jozanza / livepeer-status-updates.json
Last active January 29, 2018 15:31
Livepeer Status Updates
[
{
"date": "Wed Jan 29 2018 10:30:00 GMT-0500 (EST)",
"yesterday": [
"Updated the SDK to add a transcoders() query that returns the active transcoders",
"Added the route and layout scaffoling for the transcoder election view in the explorer app"
],
"today": [
"Wire up the transcoders() query to the new transcoder view",
"Continue to update the SDK with any desired transcoder sorting/filtering parameters"
@jozanza
jozanza / Transcoder Election View - Token Holder Persona Notes.md
Created January 23, 2018 20:22
Here's our best guess as to a token holder's goals and context-of-use, when browsing the transcoder election view within the protocol explorer app:

Transcoder Election View - Token Holder Persona Notes

Here's our best guess as to a token holder's goals and context-of-use, when browsing the transcoder election view within the protocol explorer app:

Goals

  • Compare transcoders
    • Protocol stats
    • Social / meta-info
  • Bond/Unbond tokens to transcoders
@jozanza
jozanza / notes.md
Last active February 23, 2018 16:39
Community Call 2/22 - Notes

Community Call 2/22 - Notes

General Updates

Yondon

  • Truebit validation in-progress.
  • Why Truebit?
    • The protocol needs to confirm transcoders are doing their work correctly.
    • Truebit is trustless / decentralized.
  • Truebit & Livepeer learning about each other's protocols is really helpful.