I hereby claim:
- I am mcgingras on github.
- I am mcg79 (https://keybase.io/mcg79) on keybase.
- I have a public key ASAojBAlmfLJmo9SN_lJLpXMCt-lfLtM8-YB62ZI605LrAo
To claim this, I am signing this object:
| const prompt = require("prompt"); | |
| prompt.start(); | |
| const state = [ | |
| [" ", " ", " "], | |
| [" ", " ", " "], | |
| [" ", " ", " "], | |
| ]; | |
| const printBoard = (state) => { |
| (* syntactically defining cons as list concat *) | |
| let cons a b = a::b | |
| (* sum without foldr *) | |
| let rec sum lst = | |
| match lst with | |
| | [] -> 0 | |
| | h::t -> h + sum t | |
| (* general case, foldr *) |
| // psuedocode baby | |
| validator = 0xabcd.... | |
| function mint(msg, attributes) { | |
| signer = decode(msg, attributes) | |
| require(signer === validator) | |
| mintNFT(attributes) | |
| } |
I hereby claim:
To claim this, I am signing this object:
| class Test { | |
| constructor(arr){ | |
| console.log(arr); | |
| this.arr = arr; | |
| } | |
| addHello(i){ | |
| this.arr[i] = 'hello'; | |
| } | |
| } |
This is a SCRIPT-8 cassette.
This is a SCRIPT-8 cassette.
| 'use strict'; | |
| const grpc = require('grpc'); | |
| const fs = require("fs"); | |
| // Lnd cert is at ~/.lnd/tls.cert on Linux and | |
| // ~/Library/Application Support/Lnd/tls.cert on Mac | |
| const lndCert = fs.readFileSync('/Users/mcgingras/Library/Application Support/LND/tls.cert'); | |
| const adminMacaroon = fs.readFileSync('/Users/mcgingras/Library/Application Support/LND/admin.macaroon'); | |
| const meta = new grpc.Metadata(); |
| const fs = require('fs'); | |
| const solc = require('solc'); | |
| const Web3 = require('web3'); | |
| // make sure you have a testrpc instance running on port 8545 (default) | |
| const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")); | |
| web3.eth.getAccounts() | |
| .then((accounts) => { |
| // Izer.sol | |
| // | |
| // Michael Gingras | |
| // | |
| // 7.30.17 | |
| pragma solidity ^0.4.11; | |
| import "./usingOraclize.sol"; |