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 / 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',
@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 / 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.
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.
"commands": {
"_execute_browser_action" : {
"suggested_key": {
"default": "Alt+Shift+S",
"linux": "Alt+Shift+S",
"windows": "Alt+Shift+S",
"mac": "Alt+Shift+S"
}
}
}
@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
@italosantana
italosantana / Querying the Blockchain
Last active March 4, 2022 19:06
Querying the Blockchain
// Look up the current block number
await provider.getBlockNumber()
// 14135476
// Get the balance of an account (by address or ENS name, if supported by network)
balance = await provider.getBalance("ethers.eth")
// { BigNumber: "82826475815887608" }
// Often you need to format the output to something more user-friendly,
// such as in ether (instead of wei)
@italosantana
italosantana / hardhat.config.js
Last active March 4, 2022 11:52
hardhat.config.js
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: "0.8.7",
paths: {
artifacts: './src/artifacts',
},
networks: {
- [] learn smart contracts
- [] learn Types of Blockchain
- [] learn eth
- [] learn DEFI
- [] learn Dapps
- [] learn Tokens
on: [push]
jobs:
merge_conflict_job:
runs-on: ubuntu-latest
name: Find merge conflicts
steps:
# Checkout the source code so we have some files to look at.
- uses: actions/checkout@v2
# Run the actual merge conflict finder