Skip to content

Instantly share code, notes, and snippets.

@jrhea
jrhea / 0_reuse_code.js
Created May 13, 2014 16:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jrhea
jrhea / witti.txt
Created June 24, 2020 14:03
terence's witti node
bootnode=[/dns4/prylabs.net/tcp/30001/p2p/16Uiu2HAm7Qwe19vz9WzD2Mxn7fXd1vgHHp4iccuyq7TxwRXoAGfc enr:-Ku4QAGwOT9StqmwI5LHaIymIO4ooFKfNkEjWa0f1P8OsElgBh2Ijb-GrD_-b9W4kcPFcwmHQEy5RncqXNqdpVo1heoBh2F0dG5ldHOIAAAAAAAAAACEZXRoMpAAAAAAAAAAAP__________gmlkgnY0gmlwhBLf22SJc2VjcDI1NmsxoQJxCnE6v_x2ekgY_uoE1rtwzvGy40mq9eD66XfHPBWgIIN1ZHCCD6A]
self=enr:-LK4QGBO7GEbVq1q2btTuglDqr3cvD_t0vkowXcFDLAskw0jLCnnA7_s1-7obhZqQAz8Eclj-DGEVd0J_2f-JBpMNoA2h2F0dG5ldHOIN_vu372-__yEZXRoMpD2d10HAAABE___________gmlkgnY0gmlwhBgE6n6Jc2VjcDI1NmsxoQN74Bkxm4bC8TORYWHdnqbUdL_oCUyKTXfZPk84mw3-rIN0Y3CCNrCDdWRwgjax,/ip4/192.168.1.11/tcp/14000/p2p/16Uiu2HAmLzYh3Y25iveWTVFxeJEAPCWSbSxmHHjZCbDSTGzVPy6T,/ip4/24.4.234.126/tcp/14000/p2p/16Uiu2HAmLzYh3Y25iveWTVFxeJEAPCWSbSxmHHjZCbDSTGzVPy6T
34 peers
/ip4/127.0.1.1/tcp/9500/p2p/16Uiu2HAm519XL1mHxc4FuTXArWNHwaUr6SAMz2ywM4VMz4T4bxqr/p2p/16Uiu2HAm519XL1mHxc4FuTXArWNHwaUr6SAMz2ywM4VMz4T4bxqr
/ip4/51.210.9.77/tcp/9000/p2p/16Uiu2HAmNU5LnMBkM6xsXEnBBLiLqXefJoxmkbgNmFamDkJQeQ7m,/ip4/127.0.0.1/tcp/9000/p2p/16Uiu2H
@jrhea
jrhea / bounds_output.json
Created June 24, 2020 14:53 — forked from protolambda/bounds_output.json
Eth2 type bounds v0.12
{
"AggregateAndProof": {
"min_size": 337,
"max_size": 593
},
"Attestation": {
"min_size": 229,
"max_size": 485
},
"AttestationData": {
@jrhea
jrhea / vp5.py
Created April 10, 2022 18:13 — forked from simrit1/vp5.py
while (True):
vp.rate(500)
#Calculte the force using gravitationalForce function
star.force = gravitationalForce(star,planet1)+gravitationalForce(star,planet2)+gravitationalForce(star,planet3)
planet1.force = gravitationalForce(planet1,star)+gravitationalForce(planet1,planet2)+gravitationalForce(planet1,planet3)
planet2.force = gravitationalForce(planet2,star)+gravitationalForce(planet2,planet1)+gravitationalForce(planet2,planet3)
planet3.force = gravitationalForce(planet3,star)+gravitationalForce(planet3,planet1)+gravitationalForce(planet3,planet2)
#Update momentum, position and time