This file contains 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
# is_prime() is based on https://hackernoon.com/prime-numbers-using-python-824ff4b3ea19 | |
def is_prime(number): | |
if number <= 1: | |
return False | |
prime = True | |
for num in range(2, int(number ** 0.5) + 1): | |
if number % num == 0: | |
prime = False | |
break | |
return prime |
This file contains 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
from beem import Steem | |
from beem.account import Account | |
from beem.amount import Amount | |
from argparse import ArgumentParser | |
from beembase import operations | |
from beem.transactionbuilder import TransactionBuilder | |
import json | |
parser = ArgumentParser() | |
parser.add_argument('--account', type=str, required=True) |
This file contains 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 sys | |
from beem.account import Account | |
from beem.utils import addTzInfo, parse_time | |
from datetime import datetime, timedelta | |
import matplotlib as mpl | |
mpl.use('Agg') | |
import matplotlib.pyplot as plt | |
import matplotlib.dates as mdates |
This file contains 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 | |
from beem import Steem | |
from beem.amount import Amount | |
from beem.account import Account | |
from getpass import unix_getpass | |
from beem.transactionbuilder import TransactionBuilder | |
from beembase import operations | |
from beemgraphenebase.account import PasswordKey | |
from argparse import ArgumentParser | |
import json |
This file contains 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 | |
from steemdata import SteemData | |
import sys | |
import datetime as dt | |
import shelve | |
from steem.amount import Amount | |
from steem.utils import parse_time | |
import matplotlib as mpl | |
mpl.use('Agg') | |
import matplotlib.pyplot as plt |
This file contains 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
from beem import Steem | |
import json | |
import re | |
import os | |
import cfg_crokkon as cfg | |
blogpost = "1806_beemdev.md" | |
beneficiaries = [{'account':'utopian-io', 'weight':1000}] | |
tags = ['utopian-io', 'development', 'beem', 'python', 'steemdev'] | |
title = "Beem: beneficiaries support, get account creator + " \ |
This file contains 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 matplotlib.pyplot as plt | |
""" | |
Simplified simulation: | |
* 1 "day" block time | |
* 7 "days" payout time | |
* static inflation | |
""" |