Skip to content

Instantly share code, notes, and snippets.

Jason Theobald th3o6a1d

  • NYC
Block or report user

Report or block th3o6a1d

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
th3o6a1d / citibike_esp8266_get_bikes_available_from_station.ino
Created Nov 25, 2018
Get number of bikes available from citibike station by ID and blink ESP8266 default light.
View citibike_esp8266_get_bikes_available_from_station.ino
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
const char* ssid = "";
const char* password = "";
const char* host = "";
const String url = "/gbfs/en/station_status.json";
const uint16_t port = 80;
const String station_id = "422";
th3o6a1d /
Created Oct 12, 2016
Clean up radiology reports from EPIC data dump. Usage: python input_filename.csv
import re
import csv
import sys
# Usage: python input_file_name.csv
# This will write to input_filename_cleaned.csv
# Define how we clean up the reports after the lines
th3o6a1d /
Last active Aug 29, 2015
The Poor Man's Server Monitor -- Uses email-to-text to notify if server status code != 200.
### If using gmail, you will need to log in and confirm 'insecure app' settings
import requests
import smtplib
import time
while True:
r = requests.get('')
if r.status_code != 200:
th3o6a1d /
Last active Aug 29, 2015
Python Script for Extracting Records from SPARCS Limited IP Data Files
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 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.
You can’t perform that action at this time.