Skip to content

Instantly share code, notes, and snippets.

View rclark's full-sized avatar

Ryan Clark rclark

View GitHub Profile
@rclark
rclark / what-spatial-gives.json
Created September 13, 2013 22:02
what the ckanext-spatial csw_harvester gives you
{
"name": "missouri-rock-chemistry",
"title": "Missouri Rock Chemistry",
"notes": "This is a collection of rock chemistry observations compiled by the Missouri Geological Survey and published as a Web feature service, a web map service, an ESRI service and as an Excel spreadsheet for the National Geothermal Data System by the AZGS. The document contains 12 worksheets including resource provider information and the data, which is documented in Whole Rock Major Element, U-Series, Isotope Series, Rare Earth, Volatile Gas and Noble Gas analyte suites. Data from a total of 2613 wells are included.",
"tags": [
{
"name": "Whole Rock Chemisty Analysis"
},
{
"name": "Geothermal"
@rclark
rclark / ngds-ckan-pacakge.json
Last active December 23, 2015 00:49
An NGDS-styled CKAN Package
{
"id": "12340kjfha1092412",
"metadata_modified": "2013-09-13T20:35:03.757357",
"metadata_created": "2013-09-12T20:35:03.757357",
"title": "Whatever the title is",
"notes": "The abstract / description of this thing",
<div class="highlight"><pre><code class="bash"> <span class="nv">$ </span>virtualenv pycsw <span class="o">&amp;&amp;</span> <span class="nb">cd </span>pycsw <span class="o">&amp;&amp;</span> . bin/activate
<span class="nv">$ </span>git clone git@github.com:geopython/pycsw.git <span class="o">&amp;&amp;</span> <span class="nb">cd </span>pycsw
<span class="nv">$ </span>pip install -e . <span class="o">&amp;&amp;</span> pip install -r requirements.txt
<span class="nv">$ </span>cp default-sample.cfg default.cfg
<span class="nv">$ </span>vi default.cfg
<span class="c"># adjust paths in</span>
<span class="c"># - server.home</span>
<span class="c"># - repository.database</span>
<span class="c"># set server.url to http://localhost:8000/</span>
<span class="c"># init database</span>
@rclark
rclark / index.html
Last active December 21, 2015 20:09
How to drag-drop files into the browser
<!doctype html>
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<style type="text/css">
* {
margin: 0;
padding: 0;
@rclark
rclark / hkey-algorithm.js
Last active December 21, 2015 19:59
An algorithm for converting NCGMP09 HierarchyKey strings into a useful, structured data object that represents the parent-child relationships in a Geologic Map Legend
var _ = require('underscore'),
assert = require('assert');
// This is the input array of hkeys
var input = [
"0001",
"0001|0001",
"0001|0002",
"0001|0002|0001",
"0001|0003",
@rclark
rclark / map.geojson
Created August 23, 2013 23:52
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"responseHeader": {
"status": 0,
"QTime": 2,
"params": {
"q": "Kentucky Geothermal References",
"wt": "json"
}
},
"response": {
@rclark
rclark / map.geojson
Created August 19, 2013 05:49
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rclark
rclark / map.geojson
Created August 19, 2013 05:46
via:geojson.io
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rclark
rclark / countries.geojson
Created August 15, 2013 21:37
Countries
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.