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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
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 |
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
{ | |
"AggregateAndProof": { | |
"min_size": 337, | |
"max_size": 593 | |
}, | |
"Attestation": { | |
"min_size": 229, | |
"max_size": 485 | |
}, | |
"AttestationData": { |
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
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 |