Skip to content

Instantly share code, notes, and snippets.

View michaelneuder's full-sized avatar
🚧
learning

mike neuder michaelneuder

🚧
learning
View GitHub Profile
@michaelneuder
michaelneuder / imports.py
Last active July 17, 2024 22:09
imports
import matplotlib.pyplot as plt
import matplotlib as mpl
import matplotlib.patches as mpatches
import numpy as np
import pandas as pd
from scipy.stats import poisson, uniform, expon, pareto
from scipy.optimize import minimize
from tqdm import tqdm
from mdptoolbox import mdp, util
import itertools
@michaelneuder
michaelneuder / eip7547.md
Last active March 22, 2024 18:39
eip7547 related work
@michaelneuder
michaelneuder / inclusion-lists-related-work.md
Last active December 23, 2023 14:41
inclusion-lists-related-work.md
@michaelneuder
michaelneuder / eip7251.md
Last active March 19, 2024 01:44
eip7251 related work
block hash = 0xd318fd84f34b6b7f74efdef70017356f06fb84b88fe51ad24574bb07c0ed8e6a
builder pub key = 0x945fc51bf63613257792926c9155d7ae32db73155dc13bdfe61cd476f1fd2297b66601e8721b723cef11e4e6682e9d87
parent hash = 0xb521345700d28be6f8e4f480cd87173715a9ef81184ffc77c92cd2f4111eff3a
prop pub key = 0x86fd7966e1f502441a4092840698e44c20b86b33aeab334d62f66ac312181b7704edfc2d47b09673b83e31aaa766b993
package main
import (
"bytes"
"compress/gzip"
"encoding/base64"
"fmt"
"io"
)
## sed
remove spaces
sed -e 's/ //g' last4hrs.csv > out.csv; mv out.csv last4hrs.csv
remove last line
sed -i '' -e '$ d' out.csv
remove first line
sed '1d' file.txt > tmpfile; mv tmpfile file.txt
res = []
for s in t['jsonPayload.slot']:
time.sleep(0.1)
url = 'http://57.128.92.65:3500/eth/v1/beacon/headers/{}'.format(s)
headers = {'content-type': 'application/json'}
r = requests.get(url, headers=headers)
try:
code = r.json()['code']
print(s, False)
res.append((s, False))
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import json
import requests
import time
from datetime import datetime
plt.rcParams['axes.grid'] = True
plt.rcParams['grid.alpha'] = 0.3
plt.rcParams['axes.titlesize'] = 18