Skip to content

Instantly share code, notes, and snippets.

View daviwesley's full-sized avatar
😃
let's code!

Davi Wesley daviwesley

😃
let's code!
  • Netherrealm
View GitHub Profile
import asyncio
import httpx
import time
start_time = time.time()
async def get_pokemon(client, url):
resp = await client.get(url)
import asyncio
import httpx
import time
import csv
start_time = time.time()
async def get_predict(url, params, headers):
# cria uma nova conexão ao invés de usar uma existente como tava antes
Edit in JSFiddle
Result
HTML
CSS
JavaScript
Resources
<!-- This snippet uses Font Awesome 5 Free as a dependency. You can download it at fontawesome.io! -->
<body>
<div class="container">
@daviwesley
daviwesley / token.sh
Created October 26, 2023 16:34
Get jwt token from cognito url
curl --location 'https://cognito-idp.sa-east-1.amazonaws.com/' \
--header 'X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth' \
--header 'Content-Type: application/x-amz-json-1.1' \
--data-raw '{
"AuthFlow": "USER_PASSWORD_AUTH",
"AuthParameters": {
"PASSWORD": "mysafepassw@rd",
"USERNAME": "[email protected]"
},
"ClientId": "3hgver6a6mj336cnbefus3ta1p"