Skip to content

Instantly share code, notes, and snippets.

View ashepherd's full-sized avatar

Adam Shepherd ashepherd

View GitHub Profile
@ashepherd
ashepherd / README.md
Created November 17, 2017 20:17 — forked from anonymous/README.md
JSON-LD Playground: schema:GeoShape JSON-LD Frame

schema:GeoShape JSON-LD Frame

This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting:

http://json-ld.org/playground#/gist/<gist id>
{
"fields": [
{
"description": "",
"format": "default",
"type": "number",
"name": "Leg"
},
{
"description": "",
{
"name": "data_package_bcodmo",
"resources": [
{
"name": "dataset_2292",
"url": "https://www.bco-dmo.org/dataset/2292/data/download?comments=false"
}
]
}
# Data Acquisition
:rawData
a prov:Entity;
prov:hadPrimarySource :instrument1;
prov:qualifiedPrimarySource [
a prov:PrimarySource;
prov:entity :instrument1;
rdfs:comment "how the instrument was a source";
];
prov:wasGeneratedBy :acquition;
{
"@context": "http://schema.org/",
"@type": "Organization",
"name": "BCO-DMO",
"contactPoint": {
"@type": "ContactPoint",
"name": "Adam Shepherd",
"email": "ashepherd@whoi.edu",
"url": "http://orcid.org/0000-0003-4486-9448",
"contactType": "technical support"
{
"@context": "http://schema.org",
"@graph": [
{
"name": "R2R SPARQL Endpoint",
"@type": "Service",
"url": "http://data.rvdata.us/sparql",
"provider": {
"@id": "http://data.rvdata.us/"
},
@ashepherd
ashepherd / .bash_profile
Created January 14, 2017 17:58 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
<?php
/**
* @file orcid-public-api-search.php
*
* How to use this code:
*
* STEP 1: GET A CLIENT TOKEN, IF YOU DON'T HAVE ONE ALREADY. OTHERWISE, SKIP THIS STEP
* @see http://support.orcid.org/knowledgebase/articles/343182
* Call: _request_orcid_api_token()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();