This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import requests | |
import math | |
import json | |
system_cost_usd = 4000 # usd | |
power_consumption_watt = 700 # | |
electricity_cost_kwh_usd = 0.1 # usd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
# usage python cashmine.py <ths> | |
# example to calculate bitcoin cash earning for 14 ths, python cashmine.py 14 | |
def calc(): | |
print('getting price in usdt') | |
res = requests.get("https://www.exbitron.com/api/v2/peatio/public/markets/xpiusdt/tickers").json() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1FHtMB3aXCwfeqm7U15XP65Weq6HoYQvDQ https://explorer.blockstack.org/address/1FHtMB3aXCwfeqm7U15XP65Weq6HoYQvDQ |