Skip to content

Instantly share code, notes, and snippets.

Doug Goodwin douglasgoodwin

Block or report user

Report or block douglasgoodwin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cp1_lect1.md

[fit] Computational Photography 1


[fit] Douglas Goodwin | Baxter 106 | 11a-1p

[fit] dgoodwin@scrippscollege.edu


[fit] camera + computer = ??

@douglasgoodwin
douglasgoodwin / metadata.py
Last active Aug 30, 2019
Let's use a Python module to investigate the metadata of an image file
View metadata.py
# What about the file's metadata?
import exifread
imgpath = "IMG_9590_original.jpg"
f = open(imgpath, 'rb')
# Return Exif tags
tags = exifread.process_file(f)
@douglasgoodwin
douglasgoodwin / getinfo.ipynb
Last active Aug 16, 2019
example of how to get Metro's parking information
View getinfo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasgoodwin
douglasgoodwin / mobilerouters.csv
Last active Aug 10, 2019
My initial research into the mobile routers. ts is second since the epoch, dt is the current datestring, id is the vehicle id. Columns startying with "a" indicate Anderson's feed, "nb" is Nextbus.
View mobilerouters.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 11 columns, instead of 9. in line 9.
ts,dt,id,alon,alat,aheading,nblat,nblon,nbsecsSinceReport,nbheading,nbspeedKmHr
1565397858.298165,2019-08-09 17:44:18,6043,-118.247974,34.042951,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.367101,2019-08-09 17:44:18,5977,-118.2790555,33.8591537,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.4071512,2019-08-09 17:44:18,6049,-118.3152797,34.0036958,0894,33.9928352,-118.3187675,4645,-4,0
1565397858.442306,2019-08-09 17:44:18,9349,-118.4588267,34.051113,1114,33.9928352,-118.3187675,4645,-4,0
1565397858.499375,2019-08-09 17:44:18,8114,-118.3827582,34.0852588,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.552875,2019-08-09 17:44:18,9233,-118.3905742,34.2550065,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.5882418,2019-08-09 17:44:18,8298,-118.5984565,34.2375582,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.636938,2019-08-09 17:44:18,9535,-118.5983435,34.2387738,3359,33.9928352,-118.3187675,4645,-4,0
1565397858.6991339,2019-08-09 17:44:18,9360,-118.2311967,34.0572362,0973,33.9928352,-118.3187675,
@douglasgoodwin
douglasgoodwin / diagrammer.ipynb
Created May 7, 2019
NLTK analysis of Jane Austen
View diagrammer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasgoodwin
douglasgoodwin / makemidi.ipynb
Last active Apr 19, 2019
a clumsy little test to generate random MIDI files. There are dso many ways to represent MIDI data as ASCII. This one lends itself to creating melodic lines that follow the ways that Python can navigate lists. Try throwing a sorting algorithm at it -- how would that sound?
View makemidi.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasgoodwin
douglasgoodwin / termitelab.md
Last active Apr 10, 2019
a tiny flask server that will give you randomized compass directions for the Termite Lab.
View termitelab.md

LAB: Let's simulate termites!

ingredients

  1. a regular grid
  2. a sack of beans
  3. bottle caps or portion cups, one per termite
  4. one die per termite (or use the simulator)

instructions

  • Draw or make a large regular grid of 2"x2" cells
View mlogo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View responses.md

Greetings

"polite":"Mighty fine day we’re having."
"bored":"Good day."
"annoyed":"Why aren’t you smiling, aren’t you enjoying the day?"
"contemptuous":"Good day, ain’t it?"
"disgusted":"*spits*"

"polite":"Nice day, isn’t it?"
View blue-line_simplified.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.