- 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 hidden or 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/env python3 | |
""" | |
Cursor and Copilot Instruction File Synchronization Script. | |
Synchronizes instruction files between Cursor and GitHub Copilot by copying contents | |
between .cursorrules and .github/copilot-instructions.md files. | |
Requirements: | |
- Python 3.6+ (uses f-strings) | |
- No external dependencies required (uses only standard library) |
This file contains hidden or 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/env python3 | |
""" | |
Video File Finder and Duration Analyzer. | |
This script finds video files in a directory (and its subdirectories) and displays | |
their durations in a formatted table. It can filter videos based on minimum duration. | |
Dependencies: | |
- Python 3.6+ | |
- prettytable (`pip install prettytable`) | |
- ffmpeg/ffprobe: |
This file contains hidden or 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/env python3 | |
""" | |
Dependency cleanup script for Python and Node.js projects. | |
Finds and removes virtualenv and node_modules directories that haven't been | |
modified within a specified time period. | |
Requirements: | |
- Python 3.6+ (uses f-strings) | |
- No external dependencies required (uses only standard library) |
This file contains hidden or 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/env python3 | |
""" | |
Development Project Folder Cleaner. | |
A utility script to safely clean up common unnecessary folders in development projects | |
such as node_modules, build directories, cache folders, and virtual environments. | |
Includes safety checks, dry run mode, and detailed logging. | |
Dependencies: | |
- Python 3.6 or higher | |
- No external packages required (uses only standard library) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) |
NewerOlder