Skip to content

Instantly share code, notes, and snippets.

View jumblies's full-sized avatar
🕸️
Focusing

jumblies

🕸️
Focusing
View GitHub Profile
@jumblies
jumblies / counter dictionary
Created March 12, 2018 16:51
a list of studies run through the counter builtin function
Counter({'CR CHEST ': 27,
'CT HEAD ': 16,
'CT ABDOMEN ': 11,
'CT CHEST ': 6,
'CT CSPINE ': 5,
'CTA CHEST ': 4,
'US GALLBLADDER / RUQ ': 3,
'CTA NECK ': 3,
'US PELVIS ': 3,
'CTA HEAD ': 2,
@jumblies
jumblies / counter snippet
Created March 12, 2018 16:35
counter snippet
# Set final initial counters to zero
mriFinal, ctHeadFinal, ctAbdFinal, crFinal, usFinal, ctChestFinal = 0, 0, 0, 0, 0, 0
# Set prelim initial counters to zero ****THIS SNIPPET DOES NOT INCLUDE PRELIM PROCESSING
mriPrelim, ctHeadPrelim, ctAbdPrelim, crPrelim, usPrelim, ctChestPrelim = 0, 0, 0, 0, 0, 0
prelim, final=0,0
finalExceptions = []
prelimExceptions = []
for line in processFile:
@jumblies
jumblies / exam list
Created March 12, 2018 16:28
Radiology Exam List "Dictionary"
The total number of unique studies is 103
Sample size of data is 5489
1 - CR ABDOMEN
2 - CR AC
3 - CR ANKLE
4 - CR BABYGRAM
5 - CR CALCANEUS
6 - CR CHEST
7 - CR CLAVICLE
8 - CR CSPINE
@jumblies
jumblies / dhtSummer.ino
Created March 28, 2017 12:09
Summer Deck lights
// DS1307 RTC ENTRIES ++++++++++++++++
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include <Wire.h>
#include "RTClib.h"
RTC_DS1307 rtc;
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
// DHT11 Temperature and Humidity Sensors
#include "DHT.h" //include DHT library
#define DHTPIN 13 //define as DHTPIN the Pin 10 used to connect the Sensor