This has been incorporated in a small library.
This file contains hidden or 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
| import React, { useMemo } from 'react'; | |
| import { useOcean, usePublish } from '@oceanprotocol/react'; | |
| import { Metadata } from "@oceanprotocol/lib" | |
| type MVPProps = { | |
| dtName?: string; | |
| dtSymbol?: string; | |
| } | |
| const MVP: React.FC<MVPProps> = ({ dtName, dtSymbol }) => { |
This file contains hidden or 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
| git config --global user.name "FIRST_NAME LAST_NAME" | |
| git config --global user.email "MY_NAME@example.com" |
This file contains hidden or 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
| pragma solidity ^0.6.6; | |
| import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/FlashLoanReceiverBase.sol"; | |
| import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/ILendingPoolAddressesProvider.sol"; | |
| import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/ILendingPool.sol"; | |
| contract Flashloan is FlashLoanReceiverBase { | |
| constructor(address _addressProvider) FlashLoanReceiverBase(_addressProvider) public {} | |
| /** |
This file contains hidden or 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
| pragma solidity ^0.6.6; | |
| import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/FlashLoanReceiverBase.sol"; | |
| import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/ILendingPoolAddressesProvider.sol"; | |
| import "https://github.com/aave/flashloan-box/blob/Remix/contracts/aave/ILendingPool.sol"; | |
| contract Flashloan is FlashLoanReceiverBase(0x2bdf0d8b4c67C1e9CC5989bf507E2a307B1aE3e1) { | |
| constructor(address _addressProvider) public {} | |
| /** |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
| ✅ did:3:bafyreihwe4xgtbj6r6jhca47r23a5e77jlk4kl2rpic72c4wqs2vocpebm ✅ | |
| Create your profile today to start building social connection and trust online at https://3Box.io/ |
This file contains hidden or 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
| var once sync.Once | |
| // type global | |
| type singleton map[string]string | |
| var instance singleton | |
| func NewClass() singleton { | |
| once.Do(func() { // <-- atomic, does not allow repeating | |
| instance = make(singleton) // <-- thread safe |
You often have several docker containers and applications which work together in the locel development environment. You need the following communications:
- docker container to localhost
- localhost to docker container
- docker container to docker container
You have a way to connect localhost-to-docker using -p (port-mapping) docker option.
For instance, you can start PostgreSQL container using -p 0.0.0.0:5432:5432 and then connect like to normal PostgreSQL