Skip to content

Instantly share code, notes, and snippets.

View ansermino's full-sized avatar

David Ansermino ansermino

View GitHub Profile
@ansermino
ansermino / Q02
Last active February 9, 2017 03:53
CSC343 A1
group: q2 - Customer, Order
LineItem = {
IID:number, OID:number, quantity:number
1, 4, 1
1, 3, 1
2, 3, 1
}
Order = {

Use Linux (preferably Ubuntu 16.04 LTS) or Mac for Development

Github

Security

SSH

In order for your connection to be secure with any Git client you must use the SSH protocol.

2FA required

Two factor authentication allows you to use your mobile device as a secondary source of validation to ensure your account is kept secure.

@ansermino
ansermino / config.toml
Last active July 25, 2018 23:40
Parity Config
[parity]
mode = "last"
mode_timeout = 300
mode_alarm = 3600
auto_update = "critical"
release_track = "stable"
public_node = false
no_download = false
no_consensus = false
no_persistent_txqueue = false
2018-07-25 19:36:35 IO Worker #0 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #73948 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 13 MiB sync RPC: 0 conn, 1 req/s, 763 µs
2018-07-25 19:36:45 IO Worker #1 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #79471 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 13 MiB sync RPC: 0 conn, 1 req/s, 863 µs
2018-07-25 19:36:55 IO Worker #2 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #48897 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 12 MiB sync RPC: 0 conn, 1 req/s, 931 µs
2018-07-25 19:37:00 IO Worker #3 INFO import Syncing #1590280 0x5c0f…1077 0.00 blk/s 0.0 tx/s 0 Mgas/s 0+ 0 Qed #51818 24/25 peers 242 KiB chain 0 bytes db 0 bytes queue 13 MiB sync RPC: 0 conn, 2 req/s, 832 µs
2018-07-25 19:37:05 IO Work
@ansermino
ansermino / geth-genesis.json
Created September 13, 2018 21:54
Goerli Genesis
{
difficulty: 131072,
extraData: "0x",
gasLimit: 6000000,
gasUsed: 0,
hash: "0xe1193afff14229ad9b7c3fa3a77cdb81477fcc8119464daec08c7a0066a5bb10",
logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
miner: "0x0000000000000000000000000000000000000000",
mixHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
nonce: "0x0000000000000000",
@ansermino
ansermino / results.txt
Created October 28, 2018 10:54
Go-emprean test results (go test ./... -parallel 2 -v)
? github.com/ShyftNetwork/go-empyrean [no test files]
=== RUN TestHDPathParsing
--- PASS: TestHDPathParsing (0.00s)
PASS
ok github.com/ShyftNetwork/go-empyrean/accounts 0.226s
=== RUN TestReader
--- PASS: TestReader (0.00s)
=== RUN TestTestNumbers
--- PASS: TestTestNumbers (0.00s)
=== RUN TestTestString
@ansermino
ansermino / ISSUE_TEMPLATE.md
Last active December 4, 2018 23:27
Borrowed from ganache-cli
pragma solidity "0.5.1";
contract FlightInsurance {
// Address of 'administrator'
address public owner;
// Flight number to identify contract
string public flightNumber;
// Expected departure time
uint public expectedTime;
// Timestamp from most recent call to updateTime()
pragma solidity ^0.4.24;
import './Factory.sol';
contract Dashboard {
Factory public database;
uint public campaignCount;
constructor(address _factorAddr) public {
use std::fmt;
use super::hamt::MAP_BYTES;
#[derive(Debug)]
/// Bitmap stores MAP_BYTES bytes and allows for setting and getting on individual bits.
pub struct Bitmap {
map: [u8; MAP_BYTES as usize]
}
impl Bitmap {