- https://ethereum.github.io/yellowpaper/paper.pdf
- https://ethernaut.openzeppelin.com/
- https://cryptozombies.io/
- https://uniswap.org/whitepaper.pdf
- https://vitalik.ca/general/2017/12/31/pos_faq.html#how-does-proof-of-stake-fit-into-traditional-byzantine-fault-tolerance-research
- https://polynya.medium.com/rollups-data-availability-layers-modular-blockchains-introductory-meta-post-5a1e7a60119d
- https://medium.com/aztec-protocol/why-hashes-dominate-in-snarks-b20a555f074c
- https://v1.cosmos.network/resources/whitepaper
- https://thehubbleproject.github.io/docs/Architecture
- https://vitalik.ca/general/2021/06/18/verkle.html
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
// https://medium.com/@shivamrawat_756/how-to-prevent-google-colab-from-disconnecting-717b88a128c0 | |
function ClickConnect() { | |
console.log("Working"); | |
document.querySelector("colab-toolbar-button").click() | |
} | |
setInterval(ClickConnect, 60000) |
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
try: | |
%load_ext autotime | |
except: | |
!pip install ipython-autotime | |
%load_ext autotime | |
# Reference: https://stackoverflow.com/a/66931419/10307491 |
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
# For maintaining consistent LF line endings in Windows and Unix Systems | |
* text=auto eol=lf |
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
# Link: https://stackoverflow.com/a/47626762/10307491 | |
class NumpyEncoder(json.JSONEncoder): | |
def default(self, obj): | |
if isinstance(obj, np.ndarray): | |
return obj.tolist() | |
return json.JSONEncoder.default(self, obj) | |
a = np.array([[1, 2, 3], [4, 5, 6]]) | |
print(a.shape) | |
json_dump = json.dumps({'a': a, 'aa': [2, (2, 3, 4), a], 'bb': [2]}, |
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
import gzip | |
import os | |
root_folder = "mock-data" | |
for root, dirs, files in os.walk(root_folder): | |
# if file is a .csv.gzip, extract it | |
for file in files: | |
if file.endswith(".gz"): | |
file_path = os.path.join(root, file) |
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
import os | |
import shutil | |
def delete_folders(path): | |
for root, dirs, files in os.walk(path): | |
if 'node_modules' in dirs: | |
shutil.rmtree(os.path.join(root, 'node_modules')) | |
print(f"Deleted node_modules folder in {root}") | |
if '.next' in dirs: |
OlderNewer