Skip to content

Instantly share code, notes, and snippets.

View sfkiwi's full-sized avatar

Mike Sutherland sfkiwi

  • Palo Alto
View GitHub Profile
@sfkiwi
sfkiwi / pascalsTriangle.js
Last active December 7, 2017 18:14
pascalsTriange
var factorial = function (n) {
if (n === 1) {
return 1;
}
return n * factorial(n - 1);
}
var pascalsTriangle = function(n) {
@sfkiwi
sfkiwi / decypher.js
Created October 11, 2017 01:28 — forked from AlwaysBCoding/decypher.js
Ethereum Ðapp Development - Video 13 | Ethereum Name Service (ENS)
// Config
global.config = {
rpc: {
host: "localhost",
port: "8545"
}
}
// Load Libraries
global.solc = require("solc")
@sfkiwi
sfkiwi / notes.txt
Created October 11, 2017 01:21 — forked from AlwaysBCoding/notes.txt
Ethereum Ðapp Development - Video 4 | Introduction To Transactions
// package.json
{
"dependencies": {
"web3": "0.17.0-alpha",
"ethereumjs-util": "4.5.0",
"ethereumjs-tx": "1.1.2"
}
}
@sfkiwi
sfkiwi / notes.txt
Created October 10, 2017 13:11 — forked from AlwaysBCoding/notes.txt
Ethereum Ðapp Development - Video 3 | The Halting Problem And Why We Need Gas
// To learn more about the halting problem check out Gary Bernhardt's series on computation
https://www.destroyallsoftware.com/screencasts
// Ethereum Yellow Paper
http://gavwood.com/paper.pdf
// Ethereum OpCodes List
http://ethereum.stackexchange.com/questions/119/what-opcodes-are-available-for-the-ethereum-evm
// Ethereum OpCodes Gas Costs
@sfkiwi
sfkiwi / notes.txt
Created October 10, 2017 13:10 — forked from AlwaysBCoding/notes.txt
Ethereum Ðapp Development - Video 2 | Creating Ethereum Keypairs
// package.json
{
"dependencies": {
"web3": "0.17.0-alpha",
"ethereumjs-util": "4.5.0"
}
}
// keypairs.js
var EthUtil = require("ethereumjs-util")