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 java.util.LinkedList; | |
import java.util.concurrent.TimeUnit; | |
public class StopWatchTree | |
{ | |
private final String name; | |
private final long startNanoTime; | |
private final LinkedList<StopWatchTree> children; | |
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
# Remove no-change attributes | |
sudo chflags nouchg ~/dir-to-fix | |
# Recursively clear all entended attributes | |
sudo xattr -rc ~/dir-to-fix | |
# Recursively reset to rational owner | |
sudo chown -R username:staff ~/dir-to-fix | |
# Recursively remove an ACL |
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
from web3 import Web3 | |
import json | |
wallet_address = 'YOUR_WALLET_ADDRESS' | |
w3 = Web3(Web3.HTTPProvider('https://bsc.getblock.io/mainnet/?api_key=GET_BLOCK_API_KEY')) | |
wei_balance = w3.eth.getBalance(wallet_address) | |
eth_balance = w3.fromWei(wei_balance, 'ether') | |
print(eth_balance) |
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
// names / ids: https://docs.google.com/spreadsheets/d/1wTTuxXt8n9q7C4NDXqQpI3wpKu1_5bGVmP9Xz0XGSyU/edit#gid=0 | |
function ccprice(name, currencyOpt) { | |
var currency = currencyOpt || "usd"; | |
var url = 'https://api.coingecko.com/api/v3/simple/price?ids=' + name + '&vs_currencies=' + currency.toLowerCase(); | |
var response = UrlFetchApp.fetch(url); | |
var json = response.getContentText(); | |
var jsonobject = JSON.parse(json); |
OlderNewer