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
#!/bin/bash | |
# Function that will print requirements if the user passes in the -help flag as the first argument | |
function help | |
{ | |
echo "Parameters are: " | |
echo "[Required]: search-term" | |
} | |
# Check for '-help' flag |
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
# API Tutorial: https://weatherlink.github.io/v2-api/tutorial | |
# Before using this script, I would read this tutorial. It is very well written and explains why we have to do certain things in this script. | |
# Import the required dependencies. | |
# You may need to run `pip3 install hashlib hmac json requests time` on your local machine to install them. | |
import hashlib | |
import hmac | |
import json | |
import requests | |
import time |
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 json | |
import requests | |
# https://opensea.io/assets/<your-asset-contract-address>/<your-token-id> | |
ASSETCONTRACTADDRESS = "<your-asset-contract-address>" # Replace with your Asset Contract Address | |
TOKENID = "<your-token-id>" # Replace with your Token ID | |
# Construct URL for OpenSea API to make GET call | |
url = "https://api.opensea.io/api/v1/asset/" + ASSETCONTRACTADDRESS + "/" + TOKENID + "/" |
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 datetime | |
import json | |
import os.path | |
import requests | |
# TO DO: Enter Your BC Account ID | |
# Example: 999999999 from https://3.basecamp.com/999999999/ | |
BC_ACCOUNT_ID = "<your-client-id>" | |
# Basecamp App Integration Information |
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
#!/bin/bash | |
# | |
# Script that will start VSCode with a new file saved in a specified directory to edit. | |
# Filename of the new file saved will be taken in as an argument | |
# Directory will be specified within the script | |
# | |
# Location of the directory where the files created by the script should be stored | |
file_location=${HOME}/Documents/Programming/scratchpad |
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 json | |
import requests | |
# get API url provided by https://www.vaccinespotter.org/api/ | |
# this URL can be changed to any of the other states found at the URL above | |
URL = "https://www.vaccinespotter.org/api/v0/states/MN.json" # CHANGE STATE HERE | |
requestResponse = requests.get(URL) | |
parsedJSONResponse = requestResponse.json() |
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 required tools | |
import requests | |
from datetime import datetime | |
# print current date and time | |
print(datetime.now()) | |
print() | |
# define array of cryptos to get the spot price of | |
CRYPTO = ["BTC-USD", "ETH-USD", "LTC-USD"] # Change this array to set what crypto currencies you want a spot price of |
NewerOlder