Skip to content

Instantly share code, notes, and snippets.

View themeadery's full-sized avatar

Matt Mead themeadery

  • AZ
View GitHub Profile
@Vyryn
Vyryn / wax_util.py
Last active September 1, 2022 14:09
Utilities for reliably publishing transactions to the wax network with notoriously unreliable api endpoints.
"""
Utilities for interacting with unreliable Wax endpoints for transactions on that network.
Copyright (C) 2021 Vyryn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
@Vyryn
Vyryn / fetch_wax_mining_events.py
Last active July 9, 2021 17:55
A script to fetch wax mining events on all lands owned by a specified address, to help with distributing rewards or aggregating statistics.
# Wax api Alienworlds Mining aggregator by Vyryn. Licensed under the GNU AGPLv3.
# https://www.gnu.org/licenses/agpl-3.0.en.html
import asyncio
import json
from datetime import datetime
# pip install aiohttp
import aiohttp
# pip install parsedatetime
import parsedatetime as pdt
@cubapp
cubapp / adjust-2-sea-pressure.py
Last active February 28, 2024 20:22
Python: How to get the adjusted-to-sea level barometric pressure from actual pressure, temperature and height above the sea level
# Actual atmospheric pressure in hPa
aap = 990
# Actual temperature in Celsius
atc = 10
# Height above sea level
hasl = 500
# Adjusted-to-the-sea barometric pressure
a2ts = aap + ((aap * 9.80665 * hasl)/(287 * (273 + atc + (hasl/400))))