Skip to content

Instantly share code, notes, and snippets.

Avatar
🕶️
Get Productive!

Michael Weiner mike-weiner

🕶️
Get Productive!
View GitHub Profile
@mike-weiner
mike-weiner / vaccine-spotter.php
Last active Mar 28, 2021
A Python and PHP version of a script that will use the open source Vaccine Spotter API to print out all vaccine centers in a specific city with which vaccine sites have appointments available.
View vaccine-spotter.php
<?php
# Build HTML Output in a string to echo out
$html_output = "
<html>
<head>
<meta charset='utf-8'>
<title>Vaccine Spotter API Call Results</title>
<meta name='description' content='This page is the result of the API call to http://vaccinespotter.org for the city and state you have selected.'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
</head>
@mike-weiner
mike-weiner / crypto-price.py
Last active Jan 13, 2021
A Python script that uses the Coinbase API to get the current spot price of specified cryptocurrencies.
View crypto-price.py
# import required tools
import json
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