Skip to content

Instantly share code, notes, and snippets.

View italosantana's full-sized avatar
🎯
Focusing

Ítalo S. italosantana

🎯
Focusing
View GitHub Profile
@italosantana
italosantana / closing inactive issues
Created March 23, 2022 18:38
closing inactive issues workflow
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
"commands": {
"_execute_browser_action" : {
"suggested_key": {
"default": "Alt+Shift+S",
"linux": "Alt+Shift+S",
"windows": "Alt+Shift+S",
"mac": "Alt+Shift+S"
}
}
}
jsx property allows us to use .tsx files in the project
So following are two steps of using React with Typescript
1.Name your files with a .tsx extension
2.Enable the jsx option
TypeScript ships with three JSX modes: preserve, react, and react-native.
@italosantana
italosantana / point of comparison
Created May 19, 2022 09:55
point of comparison
It helps to shift the point of comparison.
- Instead of comparing up against the ideal, compare down to baseline—the current reality for customers.
- How do we make the call to say what we have is good enough and move on?
- How do customers solve this problem today, without this feature? What’s the frustrating workaround
that this feature eliminates? How much longer should customers put up with something that doesn’t
work or wait for a solution because we aren’t sure if design A might be better than design B?
Seeing that our work so far is better than the current alternatives makes us feel better about
the progress we’ve made. This motivates us to make calls on the things that are slowing us down.
@italosantana
italosantana / Learning rocket science path
Last active September 18, 2022 17:31
Learning rocket science path
Rocket parts
structural system
payload system
guidance system
Guide to Propulsion
Compressible Aerodynamics
Wind Tunnels
Aerodynamics
Kites
Rocket Stability
@italosantana
italosantana / border-radius with borde-imagem
Last active June 21, 2022 14:08
I was trying to put a border Image, and any element that has border-image property won't respect the border-radius (that is the border won't curve). Using this form below can do it:
position: 'relative',
border: 'solid 2px transparent',
borderRadius: '20px',
backgroundImage: 'linear-gradient(#000, #000), radial-gradient(circle at bottom, #f5cf64, #f5cf6400)',
backgroundOrigin: 'border-box',
backgroundClip: 'content-box, border-box',
function WalletBalance() {
const [balance, setBalance] = useState();
const getBalance = async () => {
const [account] = await window.ethereum.request({ method: 'eth_requestAccounts' });
const provider = new ethers.providers.Web3Provider(window.ethereum);
const balance = await provider.getBalance(account);
setBalance(ethers.utils.formatEther(balance));
}
@italosantana
italosantana / border outline in TextField in MUI
Created July 14, 2022 13:21
In case you have <TextField... in Material UI and have a border
<TextField
placeholder=""
fullWidth
multiline
rows={7.5}
maxRows={Infinity}
/>
## O docker-compose up irá rodar o docker compose, baseado em nosso docker-compose.yaml e com o -d o container é inicializado em segundo plano e podemos utilizar o nosso terminal para outros comandos.
docker-compose up -d
## Listar todas os últimos containers
docker container ls -a
## Iniciar container
docker container start <container_id>
## Parar container
# CURL
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh
# CURL
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# GERAR O SCRIPT
source ~/.bashrc
# PERGUNTAR QUAIS VERSOES ESTAO DISPONIVEIS