Skip to content

Instantly share code, notes, and snippets.

Shawn Graham shawngraham

View GitHub Profile
View trading-pots-on-a-network.netlogo
shawngraham / network-message.nlogo
Created Mar 25, 2019
message-on-a-network for netlogo
View network-message.nlogo
shawngraham /
Created Mar 5, 2019
grabbing cambridge airphotos
from bs4 import BeautifulSoup
import csv
import requests
file = open("output.txt", "w")
# f = csv.writer(open("output.csv", "w"))
# f.writerow(["domain", "fulllink"])
pages = []
View netlogo-commits.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View netlogo-commits
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
<!-- Generated by graphviz version 2.40.1 (20161225.0304)
<!-- Title: %3 Pages: 1 -->
<svg width="1996pt" height="58947pt"
viewBox="0.00 0.00 1995.62 58947.45" xmlns="" xmlns:xlink="">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 58943.4457)">
shawngraham / textreuse.r
Last active Dec 7, 2018
walking through textreuse for andrew
View textreuse.r
# use ctrl+enter to run each line in turn
# next line just displays the help file for the package in the help window in R studio
vignette("textreuse-introduction", package = "textreuse")
# check what directory you're in
View imagetest.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
View using-tabulizer.r
# The file could be local, or it could be on the web.
# We're going to use
# Lane, K., Pomeroy, E. & Davila, M. (2018). Over Rock and Under Stone: Carved Rocks and Subterranean Burials at Kipia, Ancash, AD 1000 – 1532. Open Archaeology, 4(1), pp. 299-321. Retrieved 20 Jul. 2018, from doi:10.1515/opar-2018-0018
location <- ''
# Next, let's grab the data in Table 1. This is on pg 6 of the pdf.
# The line below will open a window in the viewer on the right side
View barchart.css
.bar {
fill: steelblue;
.bar:hover {
fill: brown;
.axis {
font: 10px sans-serif;
View pas-api.ipynb
"cells": [
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"import json\n",
"import requests"
You can’t perform that action at this time.