This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var factorial = function (n) { | |
| if (n === 1) { | |
| return 1; | |
| } | |
| return n * factorial(n - 1); | |
| } | |
| var pascalsTriangle = function(n) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Config | |
| global.config = { | |
| rpc: { | |
| host: "localhost", | |
| port: "8545" | |
| } | |
| } | |
| // Load Libraries | |
| global.solc = require("solc") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // package.json | |
| { | |
| "dependencies": { | |
| "web3": "0.17.0-alpha", | |
| "ethereumjs-util": "4.5.0", | |
| "ethereumjs-tx": "1.1.2" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // package.json | |
| { | |
| "dependencies": { | |
| "web3": "0.17.0-alpha", | |
| "ethereumjs-util": "4.5.0" | |
| } | |
| } | |
| // keypairs.js | |
| var EthUtil = require("ethereumjs-util") |