select pid as process_id, usename as username, datname as database_name, client_addr as client_address, application_name, backend_start, state, state_change from pg_stat_activity;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func criarDado(sql.Tx, ctx, dado Dado) (error) { | |
} | |
func criarItem(sql.Tx, ctx, item Item) (error) { | |
} | |
pedido ( dado:Dado, itens:[]Item ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function main() { | |
async function bot(cod) { | |
console.log("START BOOT:", cod); | |
let i = 0; | |
while (i < 10000) { | |
i++; | |
} | |
console.log("END BOOT:", cod); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FIX: Resolve um bug | |
FEAT: Inicia a implementação de uma feature. | |
CHORE: Trabalho em progresso de uma feature. | |
REFACTOR: Ajuste sem mudar lógica - Refatoração. | |
TEST: Implementa testes automatizados. | |
STYLE: Mudança de formatação do código - lint | |
PERF: Ajustes de performance | |
DOCS: Insere documentação | |
CI: Ajuste nas configurações do CI | |
BUILD: Ajuste nas configurações de build. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blockchain in DeFi - Smart Contracts | |
- AMM (Only Uniswap V2, Fork it) | |
- Lending (Collateralized Lending) | |
- ERC 20 (Fungible Token Standard) | |
- Vaults (Decentralized Crypto Safe Storing) | |
- Staking (Deposit Token Into Contract for Yield) | |
- Flash Loans (Borrow Crypto Without Collateral) | |
- Airdrop (Giveaway Token for Marketing Purposes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.8.9; | |
// import "hardhat/console.sol"; | |
//Todo list do Jhon | |
contract Todolist { | |
struct Todo { | |
string todo; | |
bool isCompleted; | |
uint256 todoId; | |
address owner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pull from remote overwriting local changes. | |
i) git stash (revert and stash changes locally) | |
ii) git pull (pull from remote normally) | |
to retrieve changes, do | |
'git stash apply' | |
Delete only untracked files from working tree | |
git clean -f -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.7; | |
contract Gas_Test{ | |
uint[] public arrayFunds; | |
uint public totalFunds; | |
constructor() { | |
arrayFunds = [1,2,3,4,5,6,7,8,9,10,11,12,13]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
contract CrudSimples { | |
struct Pessoa { | |
string name; | |
uint8 idade; | |
uint id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from dotenv import load_dotenv | |
from web3 import Web3 | |
load_dotenv() | |
# ERC 20 SEND |
OlderNewer