Skip to content

Instantly share code, notes, and snippets.

View smatthewenglish's full-sized avatar
🌞

Sean Matt smatthewenglish

🌞
View GitHub Profile
Verifying that +smatthewenglish is my blockchain ID. https://onename.com/smatthewenglish
pragma solidity ^0.4.13;
// This contract demonstrates a simple non-constant (transactional) function you can call from geth.
// increment() takes no parameters and merely increments the "iteration" value.
contract Incrementer {
uint iteration;
function Incrementer() {
iteration = 0;
# Externally accessible URL for this node (this is what's advertised)
url = "http://127.0.0.1:9001/"
# Port to listen on for the public API
port = 9001
# Socket file to use for the private API / IPC
# socket = "foo.ipc"
# Initial (not necessarily complete) list of other nodes in the network.
# Externally accessible URL for this node (this is what's advertised)
url = "http://127.0.0.1:9001/"
# Port to listen on for the public API
port = 9001
# Socket file to use for the private API / IPC
# socket = "foo.ipc"
# Initial (not necessarily complete) list of other nodes in the network.
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
module Constellation.Node.Main where
import ClassyPrelude hiding (getArgs, log)
import Control.Concurrent (forkIO)
import Control.Logging
( LogLevel(LevelDebug, LevelInfo, LevelWarn, LevelError)
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
module Constellation.Node.Main where
import ClassyPrelude hiding (getArgs, log)
import Control.Concurrent (forkIO)
import Control.Logging
( LogLevel(LevelDebug, LevelInfo, LevelWarn, LevelError)
@smatthewenglish
smatthewenglish / Main.hs
Created August 24, 2017 00:16
replicate pattern, log message to console
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
module Constellation.Node.Main where
import ClassyPrelude hiding (getArgs, log)
import Control.Concurrent (forkIO)
import Control.Logging
( LogLevel(LevelDebug, LevelInfo, LevelWarn, LevelError)
@smatthewenglish
smatthewenglish / Main.hs
Created August 24, 2017 00:21
piggy-back
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
module Constellation.Node.Main where
import ClassyPrelude hiding (getArgs, log)
import Control.Concurrent (forkIO)
import Control.Logging
( LogLevel(LevelDebug, LevelInfo, LevelWarn, LevelError)
0x3b66507597116b9bc4083a5D40Cc8a38D2a52F24
import json
import pprint
import collections
import itertools
import matplotlib.pyplot as plt
import numpy as np
with open('transactions000000000029.json', 'rb') as inpt:
# with open('toy_two.json', 'rb') as inpt: