Skip to content

Instantly share code, notes, and snippets.

View mattmcgiv's full-sized avatar
😎

Matt McGivney mattmcgiv

😎
View GitHub Profile
# update dependency lists
sudo apt-get update
# install build dependencies
sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
# more dependencies
sudo apt-get install libevent-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev
# get repo
#!/usr/bin/env python3
# Copyright (c) 2017-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""A modified version of an example functional test
This test is modified to do the following:
(1) get node 1 to mine another block and send it to node 2
(2) check that node 2 received it
import { Component } from '@angular/core';
@Component({
selector: 'app-example',
templateUrl: './example.component.html',
styleUrls: [ './example.component.css' ],
providers: [ MaybeSomeProvider, MaybeAnotherProvider ]
})
export class ExampleComponent {

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
#!/bin/bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
nvm install 8.2.1 # node newer version install
npm install -g npm
@mattmcgiv
mattmcgiv / 02
Created September 13, 2017 16:35
0x22b07cfd25cf068a444364e8531be5fac8af7ef1
@mattmcgiv
mattmcgiv / 01
Created September 13, 2017 15:21
0xfb70456839B62ca7bA09a1fA9E5a553E5e36D4c4
@mattmcgiv
mattmcgiv / 00
Created September 7, 2017 21:48
public ethereum address (private-net)
0x1418c2A5B8A2F547f2417996D39fB351777F2492
@mattmcgiv
mattmcgiv / blockcypher_example_response.json
Last active September 2, 2017 16:15
blockcypher_example_response.json
[
{
"name": "/tmp/geth-compile-solidity400040342:Owned",
"solidity": "pragma solidity ^0.4.8;\n\ncontract Owned {\n address public owner;\n\n function Owned() {\n owner = msg.sender;\n }\n\n modifier onlyOwner {\n require(msg.sender == owner);\n _;\n }\n\n function transferOwnership(address newOwner) onlyOwner {\n owner = newOwner;\n }\n}\n\ncontract TokenRecipient {\n function receiveApproval (address _from, uint256 _value, address _token, bytes _extraData);\n}\n\ncontract ScrypTestflight is Owned {\n /* Public variables of the token */\n string public standard = \"Test Scryp 0.1\";\n string public name;\n string public symbol;\n uint8 public decimals;\n uint256 public totalSupply;\n\n /* This creates an array with all balances */\n mapping (address =\u003e uint256) public balanceOf;\n mapping (address =\u003e mapping (address =\u003e uint256)) public allowance;\n\n /* This generates a public event on the blockchain t
@mattmcgiv
mattmcgiv / add-autocomplete-to-gravity-forms.php
Created January 11, 2017 18:56
add-autocomplete-to-gravity-forms
<?php
add_filter( 'gform_field_content', function ( $field_content, $field ) {
if ( $field->type == 'email' ) {
return str_replace( 'type=', "autocomplete='email' type=", $field_content );
}
if ( $field->type == 'name' ) {
return str_replace( 'type=', "autocomplete='name' type=", $field_content );
}
return $field_content;