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
| I0930 00:22:09.930252 32530 database.go:71] Alloted 16MB cache to /home/jack/.augur-test/chaindata | |
| I0930 00:22:09.948447 32530 database.go:71] Alloted 16MB cache to /home/jack/.augur-test/dapp | |
| I0930 00:22:09.952637 32530 backend.go:291] Protocol Versions: [62 61], Network Id: 10101 | |
| I0930 00:22:09.953227 32530 backend.go:333] Blockchain DB Version: 3 | |
| I0930 00:22:09.954300 32530 chain_manager.go:248] Last block (#44297) 2669176daa6644bdcd593deb3f39744daeb4bc1ce07099afa5f8f40c25263b61 TD=132569403835 | |
| I0930 00:22:09.960355 32530 cmd.go:125] Starting Geth/v1.2.0-7977e87c/linux/go1.5 | |
| I0930 00:22:09.960519 32530 server.go:311] Starting Server | |
| I0930 00:22:09.960636 32530 whisper.go:160] Whisper started | |
| I0930 00:22:09.960658 32530 backend.go:559] Server started | |
| I0930 00:22:09.960728 32530 backend.go:617] Automatic pregeneration of ethash DAG ON (ethash dir: /home/jack/.ethash) |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Getting Augur's crowdsale data organized... | |
| @author Jack Peterson (jack@tinybike.net) | |
| """ | |
| from __future__ import division | |
| import sys | |
| import getopt | |
| import csv |
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
| #!/usr/bin/env node | |
| var contracts = require("augur-contracts"); | |
| var ethrpc = require("ethrpc"); | |
| ethrpc.nodes.local = "http://127.0.0.1:8545"; | |
| var coinbase = ethrpc.coinbase(); | |
| var tx = { |
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
| #!/bin/bash | |
| # go-ipfs setup helper | |
| # @author Jack Peterson (jack@tinybike.net) | |
| set -e | |
| trap "exit" INT | |
| IPFS_BIN="/usr/local/bin/ipfs" | |
| IPFS_LOG="/var/log/ipfs.log" | |
| IPFS_UPSTART="/etc/init/ipfs.conf" |
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
| def concat(): | |
| t = text("i'm a long text variable! lololololololololololololol") | |
| textlen = len(t) | |
| a = array(textlen + 2) | |
| a[0] = tx.origin | |
| a[1] = msg.gas | |
| i = 0 | |
| while i < textlen: | |
| a[i + 2] = getch(t, i) | |
| i += 1 |
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
| panic: runtime error: invalid memory address or nil pointer dereference | |
| [signal 0xb code=0x1 addr=0x0 pc=0x7af2c8] | |
| goroutine 1 [running]: | |
| github.com/ethereum/go-ethereum/p2p/discover.ParseNode(0xc82006b500, 0x377, 0xe71830, 0x0, 0x0) | |
| /home/jack/src/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/p2p/discover/node.go:112 +0xd08 | |
| github.com/ethereum/go-ethereum/cmd/utils.MakeBootstrapNodes(0xc8200806c0, 0x0, 0x0, 0x0) | |
| /home/jack/src/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/cmd/utils/flags.go:462 +0x277 | |
| github.com/ethereum/go-ethereum/cmd/utils.MakeSystemNode(0xe72ee0, 0x4, 0xc82024e2a0, 0x17, 0xc82024ecc0, 0x18, 0x18, 0xc8200806c0, 0x0) | |
| /home/jack/src/go-ethereum/build/_workspace/src/github.com/ethereum/go-ethereum/cmd/utils/flags.go:599 +0x481 |
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
| [{ | |
| "nodeId": "MOST_ACTIVE", | |
| "nodeType": "MOST_ACTIVE", | |
| "name": "Most Active", | |
| "childNodes": [{ | |
| "nodeId": "CONTRACT17", | |
| "nodeType": "CONTRACT", | |
| "name": "Hillary Clinton", | |
| "childNodes": null, | |
| "id": 17, |
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
| #!/usr/bin/env node | |
| var data = require('./150-override'); | |
| var searchTarget = { | |
| key: "level", | |
| value: "FLOOR" | |
| }; | |
| function traverseWrapper(node, search) { |
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
| // FIRST APPROACH: USE AN ACCUMULATOR. | |
| function accumulator_getSpecificNodeByQuarter(givenNodeID, quarter) { | |
| // because this analytics is fixed I check the first quarter | |
| var quarterlyResults = []; | |
| dbA.utilization.find({nodeID: givenNodeID}, {_id: 0, day: 1, spaces: 1}, function (err, docs) { | |
| if (err) return console.log('did not find node'); | |
| // set min and max | |
| var minday; | |
| var maxday; |
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
| #!/usr/bin/env node | |
| var Decimal = require("decimal.js"); | |
| var fzero = require("fzero"); | |
| // MSR parameters | |
| var q = [new Decimal(10), // outcome 1 shares | |
| new Decimal(10), // outcome 2 shares | |
| new Decimal(10), // outcome 3 shares | |
| new Decimal(10), // outcome 4 shares |