type: PIN
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
type: PIN
Consumer key: IQKbtAYlXLripLGPWd0HUA
#!/usr/bin/env python | |
from datetime import datetime | |
from json import loads | |
from time import gmtime, mktime, strptime | |
# LevelDict é um wrapper usando dicionário para LevelDB | |
# https://github.com/maurobaraldi/leveldict | |
from leveldict import LevelJsonDict | |
from requests import get |
#!/usr/bin/env python3 | |
from datetime import datetime | |
from json import loads | |
from urllib.request import urlopen | |
request = urlopen('https://api.cotacoes.uol.com/currency/intraday/list?currency=1&fields=bidvalue,date').read() | |
price = loads(request)['docs'][0] | |
price['date'] = datetime.strptime(price['date'], '%Y%m%d%H%M%S').strftime('%d/%m/%Y às %H:%M:%S') | |
if __name__ == '__main__': |
#!/usr/bin/env python | |
from http.server import HTTPServer, BaseHTTPRequestHandler | |
class HTTPRequestHandler(BaseHTTPRequestHandler): | |
protocol_version = "HTTP/1.0" | |
def do_GET(self): | |
self.send_response(200) |
from django.test import Client, TestCase | |
from mock import patch | |
from .views import index | |
class SimpleTestCase(TestCase): | |
def setUp(self): | |
self.client = Client() | |
@patch('api.views.requests') |
// | |
// Uniswap Pools Analyser | |
// Author: Mauro Navarro Baraldi <mauro.baraldi@gmail.com> | |
// License: MIT License | |
// | |
// If you consider pay me a coffee here are the wallets | |
// { | |
// "bitcoin": "1EUGcJHS49242UpDXNVoLVzWSTVPRKmRth", | |
// "litecoin": "LbqRSz5i225FqED4QTFwjU5qQS72cRdvoe", | |
// "ethereum": "0xfA5c619f46848Fefe1E35Da1A04d4cBCeaf16B1f" |
#!/usr/bin/env python3 | |
import binascii | |
import hashlib | |
import pip | |
# Install base58 and ecdsa libs if not installed yeat. | |
try: | |
import base58 | |
import ecdsa |
#!/usr/bin/env python | |
# Solutions for Advent of Code 2022 | |
# Problem 1.1 | |
with open('./input.txt') as f: | |
elves_kal = [list(map(int, i.split())) for i in f.read().split('\n\n')] | |
print(max(sum(k) for k in elves_kal)) | |
# Problem 1.2 |
a | |
a | |
a | |
a | |
a | |
a | |
a | |
a | |
a | |
A |