Skip to content

Instantly share code, notes, and snippets.

View jeremyjbowers's full-sized avatar

Jeremy Bowers jeremyjbowers

View GitHub Profile
@jeremyjbowers
jeremyjbowers / april_7_lesson.md
Created April 7, 2016 02:10
The April 7th Class Lecture

April 7th Lesson

Now that we've all had a good face-to-face, we're going to accomplish two things today.

First, we're going to add a new route to your app.py that will let you see a single incident / detainee by clicking on a link from your home page.

Second, we're going to walk through how CSS works and discuss how you might use Materialize to clean up your site's design.

Update your app.py

Current state of your app.py

@jeremyjbowers
jeremyjbowers / class_notes_prior_march_17.md
Last active March 15, 2016 22:27
Class Notes for the week preceding March 17th

Introduction

Hope your spring break was magical. Here's the things you should do before class on the 17th.

Downloading data

Go to PythonAnywhere and get a Bash shell. If you're using the Guantanamo detainees data set, in your shell, type:

@jeremyjbowers
jeremyjbowers / README.md
Created March 10, 2016 19:28
A simple Python-based scraper for pulitzer.org's JSON to build a CSV of winners by year.

PULITZER DOT PY

A scraper for the Pulitzer site's JSON. Generates a CSV of winners.

Installation and usage

mkvirtualenv pulitzer
pip install -r requirements.txt
python pulitzer.py
@jeremyjbowers
jeremyjbowers / banana_bread.md
Created February 13, 2016 20:37
Adapted from Martha and Sean Brock.

Banana Bread

Ingredients

  • 1/2 cup (1 stick) butter, at room temperature, plus more for pan
  • 1 cup granulated sugar
  • 2 large eggs
  • 1 1/2 cups unbleached flour
  • 1 teaspoon baking soda
  • 1 teaspoon salt
  • 1 cup mashed very ripe bananas
@jeremyjbowers
jeremyjbowers / ingredients.csv
Last active February 3, 2016 18:51
Make Your Own Iron Chef Challenge
ingredient 1 ingredient 2 ingredient 3
pineapple corn meal cinnamon
chicken walnut oil fennel
chives gorgonzola cheese star anise
tahini garlic honey
cod white miso paste cipollini onions
arugula polenta pepitas
almonds apples 70 percent cacoa
greek yogurt leeks tomato paste
rice dill chicken stock
@jeremyjbowers
jeremyjbowers / spring_2016_mpjo_mppr_779_01_syllabus.md
Last active January 4, 2017 09:42
MPJO-779-01 / MPPR-779-01 Syllabus, Spring 2016

MPJO-779-01/MPPR-779-01

WEB DEVELOPMENT FOR MEDIA

Thursdays, 5:20 p.m. to 7:50 p.m. | Spring 2016

  • Instructor: Jeremy Bowers
  • E-mail: [email protected]
  • Mobile phone: 727-667-0510
  • Location: Downtown campus, Mac lab (C226).
@jeremyjbowers
jeremyjbowers / red_velvet_cookies.md
Created December 17, 2015 21:19
Cookies in the vein of South Georgia red velvet cake.

Georgia Christmas

(Red velvet sandwich cookies)

Cookies

(One batch makes 12-15 sandwich cookies)

Ingredients

  • 2 1/2 cups White Lily flour (or other low-protein flour)
  • 1 teaspoon kosher salt
  • 1 teaspoon baking soda
@jeremyjbowers
jeremyjbowers / a_legitimate_csv_file.csv
Last active December 15, 2015 20:07
This is a CSV file with no commas.
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
number_of_commas
0
@jeremyjbowers
jeremyjbowers / earl_grey_cake.md
Created December 11, 2015 14:26
An earl grey sheet cake. Lovely with ancient pears.

Earl Grey Sheet Cake

Ingredients

  • 2 cups of sugar
  • 2 cups of flour
  • 2 sticks of butter (1 cup)
  • 4 tablespoons of tea
  • 1 cup of water
  • 2 eggs lightly beaten
  • 0.5 cup of cream
  • 1 teaspoon of baking soda
@jeremyjbowers
jeremyjbowers / december_02.md
Last active December 2, 2015 02:31
Check your work against mine!

Check Your Work

Welcome back from your holiday! Here's a guide for how you can / should be setting up your index.html page. Check my code below and make sure yours at least sort of matches. I've broken it up into sections but a whole file is at the bottom if you want to start over.

Step 1: Basic page structure

At the top and bottom of your page, you should have <html> tags like this:

<!DOCTYPE html>
<html>