Skip to content

Instantly share code, notes, and snippets.

View liamzebedee's full-sized avatar
🎯
'drop all repos

Liam Zebedee liamzebedee

🎯
'drop all repos
View GitHub Profile
@liamzebedee
liamzebedee / README.md
Created February 16, 2021 12:12 — forked from miguelmota/README.md
Deploy custom Optimism rollup instructions

Instructions

Unofficial guide on deploying a custom Optimism rollup on Kovan

Clone optimism contracts:

git clone https://github.com/ethereum-optimism/contracts-v2.git
# review: bitcoin
- "blockchain"
- byzantine fault-tolerant consensus in an unpermissioned setting
- before, only had BFT in permissioned setting
- bitcoin: applied to digital currency, with limited "smart contract"
support
- simplest version of this:
- state machine for currency
- replicated log (ledger) -> replicated state machine
@liamzebedee
liamzebedee / python-es6-comparison.md
Created November 11, 2018 01:06 — forked from revolunet/python-es6-comparison.md
# Python VS ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL

Imports

import math
import nltk
text = """The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital
computer or the gears of a cycle transmission as he does at the top of a mountain
or in the petals of a flower. To think otherwise is to demean the Buddha...which is
to demean oneself."""
# Used when tokenizing words
sentence_re = r'''(?x) # set flag to allow verbose regexps
([A-Z])(\.[A-Z])+\.? # abbreviations, e.g. U.S.A.