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
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.4.22 <0.9.0; | |
library TestsAccounts { | |
function getAccount(uint index) pure public returns (address) { | |
address[15] memory accounts; | |
accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; |
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
https://nativebase.io/ | |
NativeBase provides its own frame component, named after <Container>. | |
All the components should be included within the Container. | |
Container takes mainly three components: <Header>, <Content> and <Footer>. | |
Usage of Container's Header component is very similar to your HTML <head>. So is with Footer. | |
The Content component of Container is nothing but the body section of your screen. | |
---------------------------------------------------------------------------------------------------- | |
Header - Renders as Header (navbar) of your screen. |
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
Organize Imports | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true, | |
}, | |
https://www.youtube.com/watch?v=-c4og4K3w2Q | |
https://www.youtube.com/watch?v=svCTgx6abFc |
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
https://github.com/withspectrum/spectrum/blob/alpha/src/hooks/useAppScroller.js | |
https://github.com/withspectrum/spectrum/blob/alpha/src/helpers/localStorage.js | |
react hot keys | |
https://github.com/jaywcjlove/react-hotkeys/blob/master/src/index.tsx | |
https://wangchujiang.com/hotkeys/ |
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
// https://medium.com/@rossbulat/react-forms-with-formik-hocs-and-functional-components-df394afd2039 | |
// defining a form within <Formik /> | |
const FormikForm = () => | |
<Formik | |
... | |
onSubmit={() => {...}} | |
validate={() => {...}} | |
render={ |
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
/* | |
In package.json file create property called "homepage" and add public github page url | |
e.g. "homepage": "https://vigneshwaran-chandrasekaran.github.io/react-router-v5/" | |
then install | |
npm install gh-pages --save | |
then add below scripts in package.json | |
"scripts":{ | |
"predeploy": "npm run build", |