List of helpful shortcuts for faster coding
If you have any other helpful shortcuts, feel free to add in the comments of this gist :)
/* eslint-disable jsx-a11y/anchor-is-valid */ | |
import React, { useEffect, useRef, useState } from 'react'; | |
import useInterval from '@use-it/interval'; | |
// Constants | |
const VALID_CHARS = `proliferating creative collection forefront dao tokenized community digital vibe!&@#~~@#(*:"?>)`; | |
const STREAM_MUTATION_ODDS = 2; | |
const MIN_STREAM_SIZE = 5; |
(error={"code":-32000,"message":"execution reverted"}, method="estimateGas", transaction={"from":"0x662d5d79849113A5403Af776210307a7c82a5267","to":"0x117f51CD7692649C794D841D6d561261b9769a7B","data":"0xe896686300000000000000000000000000000000000000000000000000000000000005f200000000000000000000000000000000000000000000000000005af3107a4000000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000662d5d79849113a5403af776210307a7c82a5267000000000000000000000000662d5d79849113a5403af776210307a7c82a52670000000000000000000000000000000000000000000000000000000000000000"}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.0.17) |
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: