Skip to content

Instantly share code, notes, and snippets.

View sarahholderness's full-sized avatar

Sarah Holderness sarahholderness

View GitHub Profile
@sarahholderness
sarahholderness / emailer.py
Last active December 4, 2022 10:49
Python scripts to read a list of customer emails and send an email with the daily weather forecast
import weather
import smtp
'''
Send a greeting email to our customer email list
with the daily weather forecast and schedule
'''
def get_emails():
# Reading emails from a file
@sarahholderness
sarahholderness / opug.py
Created March 16, 2016 20:22
For the Orlando Python Users Group I covered some beginner topics for those interested in getting started with Python! I hope it was beneficial and let me know if you have any questions!
# First, we went over doing some basic math
# and using variables
year = 2016
year_born = 1983
age = year - year_born
dog_years = age/7
print(dog_years)
@sarahholderness
sarahholderness / MainActivity.java
Created May 25, 2017 16:44
MainActivity in Java compared to in Kotlin.
package com.codeschool.candycoded;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
@sarahholderness
sarahholderness / space.py
Created December 9, 2021 21:22
Using Python Requests
import requests
response = requests.get('http://api.open-notify.org/astros.json')
json = response.json()
for person in json['people']:
print(person['name'])