Skip to content

Instantly share code, notes, and snippets.

Avatar
🙉
REEEEEE

Zac Jones 1sudo

🙉
REEEEEE
View GitHub Profile
@1sudo
1sudo / stf_to_json.py
Last active Oct 9, 2020
Convert SWG string file to JSON
View stf_to_json.py
import io
import numpy as np
import json
from os import walk, path, chdir
from pathlib import Path
class STFReader:
def __init__(self):
self.buffer = None
self.value_array = {}
View stf_writer.py
class STFWriter:
def __init__(self):
self.b = bytearray()
self.row_count = None
self.character_count = None
self.fname = None
def parse_bytes(self, value, num_bytes=None):
View etherium_notifier.py
import json, hmac, hashlib, time, requests
from requests.auth import AuthBase
# Before implementation, set environmental variables with the names API_KEY and API_SECRET
API_KEY = ''
API_SECRET = ''
# Create custom authentication for Coinbase API
class CoinbaseWalletAuth(AuthBase):
def __init__(self, api_key, secret_key):