- Show your MANA balance in the navbar
- Show your MANA balance in the settings page
- Show your wallet address in the settings page
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
1. Embrace Simplicity Over Cleverness | |
- Write code that's immediately understandable to others | |
- If a solution feels complex, it probably needs simplification | |
- Optimize for readability first, performance second unless proven otherwise | |
- Avoid premature optimization | |
```python | |
# Avoid clever one-liners | |
# Bad | |
return [n for n in range(max_num) if all(n % i != 0 for i in range(2, n))] |
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
#!/bin/bash | |
# Function to perform cleanup for Rust projects | |
cleanup_rust() { | |
if [ -f "Cargo.toml" ] && [ -d "target" ]; then | |
echo "[Rust] Cleaning project in $(pwd)" | |
cargo clean | |
fi | |
if [ -d "target" ]; then |
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 time | |
import requests | |
import click | |
from web3 import Web3 | |
def create_message(delegate_address): | |
totp = int(time.time()) // 3600 | |
return delegate_address + str(totp) |
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
[ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "indexer", | |
"type": "address" | |
}, |
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
[ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "_oldManager", | |
"type": "address" | |
}, |
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
openssl s_client -showcerts -connect ${DOMAIN} |
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
{ tx: '0x3e387318c3d6b9e640e233441069f53052da7e8e46c8473dfb9001c6fbdf0b1d', | |
receipt: | |
{ transactionHash: '0x3e387318c3d6b9e640e233441069f53052da7e8e46c8473dfb9001c6fbdf0b1d', | |
transactionIndex: 0, | |
blockHash: '0xaf2af5f3c1bad937f0f998b0ed0b0ae01a576380d4d96b550038acfc4e28eda9', | |
blockNumber: 643, | |
gasUsed: 45004, | |
cumulativeGasUsed: 45004, | |
contractAddress: null, | |
logs: [] }, |
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
sha1sum ${FILENAME} | awk '{print $1}' |
NewerOlder