Portfolio

Portfolio

Portfolio

CorporateBrain

2023

My first user application. Built with React, Tailwind, Google Firestore, and OpenAI's models. This project has been particularly useful in learning how to manage state and render components in React, write clean CSS styles, and interact asynchronously with databases and APIs.


8Sleep > Notion

2023

# 8Sleep to Notion | Daily AM

def main():

l.log.debug('Function: main - invoked')

session8SlpStart() # load/create session object


data = pull8SlpData() # from endpoint

timestamp = data["timestamp"]

score = data["score"]

respRate = data["respRate"]

heartRate = data["heartRate"]


#Create Notion row and post 8Sleep data

postNotion(score, respRate, heartRate)



main()

# 8Sleep to Notion | Daily AM

def main():

l.log.debug('Function: main - invoked')

session8SlpStart() # load/create session object


data = pull8SlpData() # from endpoint

timestamp = data["timestamp"]

score = data["score"]

respRate = data["respRate"]

heartRate = data["heartRate"]


#Create Notion row and post 8Sleep data

postNotion(score, respRate, heartRate)



main()

# 8Sleep to Notion | Daily AM

def main():

l.log.debug('Function: main - invoked')

session8SlpStart() # load/create session object


data = pull8SlpData() # from endpoint

timestamp = data["timestamp"]

score = data["score"]

respRate = data["respRate"]

heartRate = data["heartRate"]


#Create Notion row and post 8Sleep data

postNotion(score, respRate, heartRate)



main()

I've been using Notion to track how I spend my time. This script runs in a Google Cloud environment every morning and adds a new row with last night's sleep data. It was a great exercise in honing my API skills and took a lot of trial and error due to 8Sleep's API having no documentation.

About

Hey. I'm Mckay Anderson, an emerging software developer with 3.5 years of experience building scaleable data systems. If you're looking for an ambitious developer, send me a note!