Skip to content

Instantly share code, notes, and snippets.

View akinncar's full-sized avatar

Akinn Rosa akinncar

View GitHub Profile
@brunocroh
brunocroh / progressBar.ts
Last active July 31, 2023 22:42
Youtube downloader
import cliProgress from 'cli-progress'
import colors from 'ansi-colors'
import stream from 'stream'
async function endDownload(promise: any) {
return new Promise((resolve, reject) => {
promise
.then(resolve)
.catch(reject)
})
@Rastrian
Rastrian / FTM.md
Last active November 17, 2021 14:02
Comprando $FTM para utilizar os serviços da rede Fantom Opera

Esta publicação foi traduzida e adaptada para acessibilidade em PT/BR, a versão original e feita pelo @MarcoWorms em inglês, para visualiza-la clique aqui.

Comprando $FTM

  1. Se você nunca teve contato com crypto e não tenha criado uma conta em uma corretora, para comprar $FTM, recomendamos utilizar a Binance (Clique aqui para acessar o mesmo link sem o codigo de afiliado).
  2. Após criar uma conta em uma corretora, deposite dinheiro FIAT/moeda fiduciária da sua escolha na carteira da sua corretora.
  3. Uma vez que você depositou fundos você pode comprar $FTM diretamente de um mercado ou utilizar o conversor automático da Binance.

Instalando uma carteira via browser/navegador

@sibelius
sibelius / learning-path-web3.md
Last active June 18, 2024 17:52
Learning Path Web3
  • learn blockchain concepts
  • learn ethereum
  • learn how to use metamask
  • learn how to use hardhat (https://hardhat.org/)
  • learn how to deploy and interact with a smart contract
  • learn common smart contract standards like ERC20 (token), ERC721 (nft), ERC1155 (opensea)
  • learn ipfs
  • learn how to read blockchain explorers like https://etherscan.io/
  • learn how to use web3 and etherjs
  • learn solidity
@intergalacticspacehighway
intergalacticspacehighway / useKeyboardBottomInset hook
Created August 10, 2021 04:54
Hook to get keyboard height in React Native and add bottom/padding inset on a view.
import { Keyboard, Platform, KeyboardEvent } from 'react-native';
const useKeyboardBottomInset = () => {
const [bottom, setBottom] = React.useState(0);
const subscriptions = React.useRef([]);
React.useEffect(() => {
function onKeyboardChange(e) {
if (
e.startCoordinates &&
.css-1dbjc4n.r-13awgt0.r-18u37iz.r-1w6e6rj,
[data-testid="unlike"] .css-901oao.css-16my406.r-1qd0xha.r-ad9z0x.r-bcqeeo.r-qvutc0,
[data-testid="like"] .css-901oao.css-16my406.r-1qd0xha.r-ad9z0x.r-bcqeeo.r-qvutc0,
.css-4rbku5.css-18t94o4.css-901oao.r-hkyrab.r-1loqt21.r-1qd0xha.r-a023e6.r-16dba41.r-ad9z0x.r-bcqeeo.r-qvutc0 {
display: none;
}
.r-z1a2ur {
background-color: rgb(255 255 255);
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.seuapp"
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme"
android:launchMode="singleTask">
@sibelius
sibelius / reactLearningPath.md
Created May 24, 2021 01:28
React Learning Path
  • What is React props?
  • What is React state?
  • unidirectional data flow
  • how to create a React component
  • React hooks (useState, useEffect, and other basics ones)
  • Effects
  • How to handle event handlers (onClick)
  • React Context - share state for a subtree
  • Recoiljs
  • How to refactor a class component to hooks
@mauriciomutte
mauriciomutte / test-utils.tsx
Last active May 7, 2021 00:31
Testing-library + styled-components + Typescript
import { ReactElement } from 'react';
import { ThemeProvider } from 'styled-components';
import { render, RenderOptions } from '@testing-library/react';
import theme from 'styles/theme';
type CustomRenderProps = Omit<RenderOptions, 'queries'>;
const customRender = (ui: ReactElement, options: CustomRenderProps = {}) =>
render(<ThemeProvider theme={theme}>{ui}</ThemeProvider>, options);
@sibelius
sibelius / LookingForTheFirstJob.md
Last active July 3, 2023 08:48
Looking for the First Job state

Looking for the First Job

Versão em Português

This is a very common state for people in college, people before/after a bootcamp, or people from another area.

The first job will be the hardest one to get, but it will get easier over time.

The interview will be harder than the job itself

@mrousavy
mrousavy / MEMOIZE.md
Last active June 28, 2024 17:29
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia