Skip to content

Instantly share code, notes, and snippets.

View vigneshwaran-chandrasekaran's full-sized avatar
👨‍🎓
Focusing

Vigneshwaran Chandrasekaran vigneshwaran-chandrasekaran

👨‍🎓
Focusing
View GitHub Profile
@vigneshwaran-chandrasekaran
vigneshwaran-chandrasekaran / .deps...remix-tests...remix_accounts.sol
Created August 6, 2022 09:12
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// 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;
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.
Organize Imports
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
https://www.youtube.com/watch?v=-c4og4K3w2Q
https://www.youtube.com/watch?v=svCTgx6abFc
// https://medium.com/@rossbulat/react-forms-with-formik-hocs-and-functional-components-df394afd2039
// defining a form within <Formik />
const FormikForm = () =>
<Formik
...
onSubmit={() => {...}}
validate={() => {...}}
render={
@vigneshwaran-chandrasekaran
vigneshwaran-chandrasekaran / deploy react app to github page
Last active July 11, 2020 10:24
deploy react app to github page
/*
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",