Skip to content

Instantly share code, notes, and snippets.

View thisiscarlosgomes's full-sized avatar
💭
🌶 Trying to make it to another day

Carlos thisiscarlosgomes

💭
🌶 Trying to make it to another day
  • Beijing
View GitHub Profile
/* 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)
@thisiscarlosgomes
thisiscarlosgomes / vscode_shortcuts.md
Created February 17, 2020 12:08 — forked from bradtraversy/vscode_shortcuts.md
Helpful shortcuts for VSCode

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

Official List of all commands

@thisiscarlosgomes
thisiscarlosgomes / async-await.js
Created January 25, 2020 02:32 — forked from wesbos/async-await.js
Simple Async/Await Example
// 🔥 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
});
}

Keybase proof

I hereby claim:

  • I am kelvinwebdesigner on github.
  • I am carlosgomes (https://keybase.io/carlosgomes) on keybase.
  • I have a public key ASBTl_dOuqGWp5BVAa09q6E9ivBf6ViMrWAmZTQ4NfELkwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am kelvinwebdesigner on github.
  • I am carlosgomes (https://keybase.io/carlosgomes) on keybase.
  • I have a public key ASANOalTswL5O4gFP-tROGhwz4nB8uclohAkFGOEAYxPWQo

To claim this, I am signing this object: