Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
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
/** | |
* Sample access control list. | |
*/ | |
rule EverybodyCanReadEverything { | |
description: "Allow all participants read access to all resources" | |
participant: "org.acme.sample.User" | |
operation: READ | |
resource: "org.acme.sample.*" | |
action: ALLOW | |
} |
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
NodeJS Chaincode Deploy and Test | |
start Docker | |
cd /fabric-samples/basic-network /basic network | |
Edit docker-compose.yml change line no 72 comment and 73 uncomment. //prod to devp network | |
Edit start.sh add ‘cli’ in 15 no. line (docker-compose -f docker-compose.yml up -d ca.example.com orderer.example.com peer0.org1.example.com couchdb cli) | |
./start.sh //run start script to up network | |
docker logs -f peer0.org1.example.com //log (1 terminal) | |
docker exec -it cli bash //peer (2 terminal) | |
cd /fabric-samples/chaincode/hyperledger/fabric/peer/nodefiles (3 terminal) |
A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.7.2; | |
interface PoolInterface { | |
function swapExactAmountIn(address, uint, address, uint, uint) external returns (uint, uint); | |
function swapExactAmountOut(address, uint, address, uint, uint) external returns (uint, uint); | |
} | |
interface TokenInterface { | |
function balanceOf(address) external returns (uint); |