Skip to content

Instantly share code, notes, and snippets.

View peakera's full-sized avatar

Alicia Peaker peakera

View GitHub Profile
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
@peakera
peakera / LICENSE
Last active January 4, 2017 17:16
Flora in Tess of the d'Urbervilles
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
import urllib2
from bs4 import BeautifulSoup
import re
import csv
import requests
#Checks all of the pages listing records for the record urls
for i in range(0,5):
url = ('http://www.qub.ac.uk/imagining-history/resources/short/index.php?pageNum_rstCallShort=' + str(i))
@peakera
peakera / LICENSE.md
Last active March 23, 2016 15:18
Alec amidst Flora (Tess)
@peakera
peakera / LICENSE.md
Created March 23, 2016 15:08
Botanical Barcode (Tess of the d'Urbervilles)
@peakera
peakera / LICENSE.md
Last active March 23, 2016 15:06
Botanical Barcode (Gone to Earth)
@peakera
peakera / README.md
Last active March 23, 2016 14:41
Other Male Humans amidst Flora (Tess)

This visual is one of a set that attempts to contextualize both human characters and nonhuman others within the natural world of Thomas Hardy's 1892 novel Tess of the d'Urbervilles. This cluster visualizes words tagged "flora" that appear within 120 characters of a word tagged "Other Male Humans," (i.e. any male human except Edward and Reddin who have their own visualizations). Words may be repeated and have been sorted according to their location in the novel. To see context from the novel, click on a word. You can submit feedback or questions and read more about the larger project here.

@peakera
peakera / README.md
Last active March 23, 2016 14:40
Other Female Human amidst Flora (Tess)

This visual is one of a set that attempts to contextualize both human characters and nonhuman others within the natural world of Thomas Hardy's 1892 novel Tess of the d'Urbervilles. This cluster visualizes words tagged "flora" that appear within 120 characters of a word tagged "Other Female Humans," (i.e. any female human except Tess who has her own visualizations). Words may be repeated and have been sorted according to their location in the novel. To see context from the novel, click on a word. You can submit feedback or questions and read more about the larger project here.

@peakera
peakera / README.md
Created February 12, 2016 01:56
Angel amidst Flora (Tess)

This visual is one of a set that attempts to contextualize both human characters and nonhuman others within the natural world of Thomas Hardy's 1892 novel Tess of the d'Urbervilles. This cluster visualizes words tagged "flora" that appear within 120 characters of a word tagged "Angel." Words may be repeated and have been sorted according to their location in the novel. To see context from the novel, click on a word. You can submit feedback or questions and read more about the larger project here.