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 sys, csv, os | |
### | |
### Author Jason Theobald, MD/MBA Student 2014 | |
### This script reads all SPARCS files with the .DAT extension in the same folder as the script | |
### Use this to retrieve patients by ICD-9 Code and generate a .csv file | |
### To run: python extractor.py on Mac OSX or Windows PC (with Python 2.7 installed) | |
### | |
### Shows what files are being read. Will open all .dat files in current directory. |
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
### If using gmail, you will need to log in and confirm 'insecure app' settings | |
import requests | |
import smtplib | |
import time | |
while True: | |
try: | |
r = requests.get('http://sitetocheck.com') | |
if r.status_code != 200: |
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
#!/usr/bin/python | |
import re | |
import csv | |
import sys | |
# Usage: python report_cleaner.py input_file_name.csv | |
# This will write to input_filename_cleaned.csv | |
# Define how we clean up the reports after the lines |
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
#include <ESP8266WiFi.h> | |
#include <ArduinoJson.h> | |
const char* ssid = ""; | |
const char* password = ""; | |
const char* host = "gbfs.citibikenyc.com"; | |
const String url = "/gbfs/en/station_status.json"; | |
const uint16_t port = 80; | |
const String station_id = "422"; |
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
render() { | |
return ( | |
<div> | |
<table className="table table-auto mx-auto"> | |
<tbody className="bg-white divide-y divide-gray-200"> | |
{this.state.rows ? ( | |
this.state.rows.map((row, i) => { | |
return ( | |
<tr | |
key={Math.random()} |