Skip to content

Instantly share code, notes, and snippets.

View timtheguy's full-sized avatar
Probably drinking coffee

Tim Christovich timtheguy

Probably drinking coffee
View GitHub Profile
@timtheguy
timtheguy / hawklinkrosterscraper.js
Last active September 24, 2018 21:07 — forked from vingkan/hawklinkrosterscraper.js
Improved Roster Scraper for Campus Labs
var orgID = // Your Organization ID;
getOrganization(orgID, 1).then((initialOrg) => {
getOrganization(orgID, initialOrg.totalItems).then((fullOrg) => {
let promises = [];
fullOrg.items.forEach((item) => {
let memberID = item.account.id;
let p = getMember(memberID);
promises.push(p);
});
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <Adafruit_MPL3115A2.h>
Adafruit_MPL3115A2 baro = Adafruit_MPL3115A2();
const int pinAdc = A0;
void setup() {
Serial.begin(115200); //Serial connection
#include <hidef.h> /* common defines and macros */
#include "derivative.h" /* derivative-specific definitions */
#include "delay.h"
//function prototypes
void update_seven_segment(void);
void setClk(void);
//initialize variables as unsigned chars (or unsigned bytes)
unsigned char mill = 0;