Skip to content

Instantly share code, notes, and snippets.

View mamund's full-sized avatar

Mike Amundsen mamund

View GitHub Profile

Representors

JSON/NodeJS edition...

Item

{
  "Representer": {
@mamund
mamund / gist:cabb05bfa57a466190a5
Last active September 29, 2015 21:51 — forked from inadarei/gist:ba17f7adad22e65d2299
using RFC6570-style for arrays.
{
"name" : "Amtrak Route Zeta",
"active" : true,
"availableFrom": "2014-01-01T00:00:00Z,2011-01-01T00:00:00Z,2009-01-01T00:00:00Z",
"availableUntil": "2015-01-01T00:00:00Z,2012-01-01T00:00:00Z,2010-01-01T00:00:00Z"
}
VERSION 1:
"data": [
{
"name": "Doctor Search",
"url": "http://api.example.com/doc-search/hash/7fa891bf095e4408ac1f5f889ad2c644",
"data": [
{
"name": "Name",
"rel" : "https://api.example.com/rels/doctor-name",
@mamund
mamund / bioalps-mamund.js
Last active August 29, 2015 14:05 — forked from jenzopr/gist:6bab8db26fb2fb767c08
adjusted bio-alps example to move the custom "_property" section elements in into the existing "data" section for each item
{
"collection" : {
"version" : "1.0",
"href" : "http://example.org/assemblies/",
"links" : [
{
"rel" : "profile",
"href" : "http://alps.example.org/bioassembly.xml"
},
{
@mamund
mamund / webapibook_alps.xml
Last active August 29, 2015 13:57 — forked from glennblock/webapibook_alps.xml
Forked Web API Book ALPS document (from @gblock)
<alps version="1.0">
<doc>Issue tracking profile</doc>
<!-- data vocabulary -->
<descriptor id="id" type="semantic"/>
<descriptor id="title" type="semantic"/>
<descriptor id="description" type="semantic"/>
<descriptor id="status" type="semantic"/>
<descriptor id="action" type="semantic"/>
<descriptor id="search-text" type="semantic"/>
@mamund
mamund / 00-http.html
Created October 13, 2010 15:58 — forked from mikekelly/http.html
forked version of mikekelly's very cool idea of a microformat for HTTP
<html>
<head>
<title>Example of HTTP microformat</title>
<meta name="author" content="mamund@yahoo.com" />
<style type="text/css">
dl.http
{
border: 1px solid black;
}
dl.http dt.request,