Skip to content

Instantly share code, notes, and snippets.

View pinhopro's full-sized avatar

Rodrigo Souza pinhopro

View GitHub Profile
import bisect
import hashlib
def check_mnemonic(word_list: list[str], mnemonic_list: list[str]) -> bool:
if len(mnemonic_list) not in [12, 15, 18, 21, 24]:
return False
try:
idx = map(lambda x:bin(word_list.index(x))[2:].zfill(11), mnemonic_list)
b = "".join(idx)
#!/usr/bin/env python
import hashlib
import hmac
import time
import requests
import datetime
# Q. Do you have A Websocket API?
# A. Yes, and we strongly recommend you to use it. Please, check our JavaScript websocket implementation for our WebSocket API here:
# https://github.com/blinktrade/frontend/blob/master/jsdev/bitex/api/bitex.js
Corretora: BitCambio
CNPJ/Razão social: 19.004.882/0001-91 - Citar Tech EIRELI-ME
Contato: Aline Lopes - juridico@bitcambio.com.br
Situação:
| Banco| Situação | Liminar | Avisou sobre fechamento |
| --- |:-------------:| -------:|------------------------:|
| Santander| Aberta com liminar|Liminar concedida|Sim|
| Itaú|Fechada|Aguardado apreciação do juiz| Não |
| Bradesco |Recusa de contratar|N.A.|N.A.|
| Rendimento |Recusa de contratar|N.A.|N.A.|
@pinhopro
pinhopro / machine.js
Created November 16, 2021 18:46
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pinhopro
pinhopro / machine.js
Last active November 4, 2021 21:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pinhopro
pinhopro / machine.js
Last active August 14, 2021 03:52
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pinhopro
pinhopro / machine.js
Last active July 28, 2021 19:40
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
#!/usr/bin/env python3
import asyncio
import websockets
import json
import time
import pprint
BLINKTRADE_API_ENDPOINT = 'wss://bitcambio_api.blinktrade.com/trade/'
BLINKTRADE_BROKER_ID = 11
BLINKTRADE_API_KEY = ''
import os
import requests
import time
import datetime
import argparse
import unicodecsv as csv
def get_trades(currency="BRL", since=0, trade_list=[]):
headers = {