Skip to content

Instantly share code, notes, and snippets.

View krdyke's full-sized avatar

Kevin Dyke krdyke

  • Oklahoma State University
  • Stillwater, OK
View GitHub Profile
@krdyke
krdyke / CatcherUploadExample.csv
Created July 17, 2017 18:21 — forked from saverkamp/CatcherUploadExample.csv
Sample CONTENTdm Catcher upload script. Uses Catcher class from: https://gist.github.com/saverkamp/9197945
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
Alias,CDM_page_id,CDM_field,Value
byington,3160,transc,"Thursday October 25th 1900 Did two churnings this morning and finished putting the tomato pickle away. I put in all the afternoon doing mending Will busy about the place and Mrs Evans helped Leonard with the corn the new man went back to town tonight. Friday October 26th 1900 Will took the butter to town. I was busy with the work till noon I did a lot of baking. I cut out shirts and sewed all afternoon. Saturday October 27th 1900 I sewed a little and got the dinner be a little after eleven. Will and I went to town in the afternoon to have my teeth finished. It has been a warm week, today was like summer. I had a letter from Mother. Sunday October 28th 1900 I was busy about the house most of the forenoon Leonard and his wife were away all day. It rained some in the forenoon. We were up to Stevens in the afternoon. I spent the evening reading. Monday October 29th 1900 It rained in the morning so Leonard could not husk corn. Will was bus
@krdyke
krdyke / esri-dynamic-layer-all-layers.json
Last active January 27, 2016 19:02
Esri web service fixtures for GeoBlacklight
{
"uuid": "urn-90f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_geom_type_s": "Polygon",
"dc_identifier_s": "urn-90f14ff4-1359-4beb-b931-5cb41d20ab90",
"dc_title_s": "Glacial Boundaries: Illinois, 1997",
"dc_description_s": "This is an SDE feature class containing glacial boundary polygons representing the extent of glaciation for major glacial episodes in Illinois. Data are originally from the Quaternary Deposits in Illinois (1:500,000) map by Lineback (1979). Data have been subsequently modified to conform with the reclassification by Hansel and Johnson, ISGS Bulletin 104 (1996). Glacial episode is identified for each polygon. The data include the Wisconsin, Illinois and the Pre-Illinois episodes. Areas not glaciated are also identified. The nominal scale is 1:500,000.",
"dc_rights_s": "Public",
"dct_provenance_s": "University of Illinois",
"layer_id_s": "urn:f14ff4-1359-4beb-b931-5cb41d20ab90",
"layer_slug_s": "University of Illinois-f14ff4-1359-4beb-b931-5cb41d20ab90",
@krdyke
krdyke / index.html
Created January 7, 2016 18:26 — forked from mbostock/.block
Satellite Projection
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.graticule {
fill: none;
stroke: #777;
}
.boundary {
@krdyke
krdyke / google_json_to_geojson.py
Last active October 27, 2017 16:36
quick and dirty script that, if placed and run in the same folder as your LocationHistory.json file from Google Takeout, will convert Google JSON to GeoJSON, suitable for use in all manner of mapping applications.
import json
j = json.load(open("LocationHistory.json", "r"))
locs = j["locations"]
geoj= {"type":"FeatureCollection"}
geoj["features"] = []
f = open("loc_temp.geojson","w")
count=0
for i in locs:
feature = {"type":"Feature"}
@krdyke
krdyke / README.md
Last active August 29, 2015 14:24 — forked from mbostock/.block

A variant of the Zoom to Bounding Box example that uses zoom transitions to smoothly interpolate between different views. This example also allows you to freely pan and zoom with the mouse (or touch).

@krdyke
krdyke / README.md
Last active August 29, 2015 14:22
Grand Rapids Refuse Routes