This is a SCRIPT-8 cassette.
This file contains 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
0x2080B37F15Fb75D95fb3fc68e4d732293386D357 |
This file contains 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
// Izer.sol | |
// | |
// Michael Gingras | |
// | |
// 7.30.17 | |
pragma solidity ^0.4.11; | |
import "./usingOraclize.sol"; |
This file contains 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
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) => { |
This file contains 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
'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(); |
This is a SCRIPT-8 cassette.
This file contains 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
class Test { | |
constructor(arr){ | |
console.log(arr); | |
this.arr = arr; | |
} | |
addHello(i){ | |
this.arr[i] = 'hello'; | |
} | |
} |
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:
This file contains 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
// psuedocode baby | |
validator = 0xabcd.... | |
function mint(msg, attributes) { | |
signer = decode(msg, attributes) | |
require(signer === validator) | |
mintNFT(attributes) | |
} |
This file contains 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
(* 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 *) |
OlderNewer