Skip to content

Instantly share code, notes, and snippets.

View mamund's full-sized avatar

Mike Amundsen mamund

View GitHub Profile
@mamund
mamund / person-uber.html
Last active May 28, 2021 07:41
an UBER representation (and resulting HTML document) that uses transclusions
<html>
<head>
<title>Person</title>
<link rel="related" href="http://example.org/uber/person-uber.xml" />
</head>
<body>
<dl>
<dt>NAME:</dt>
<dd>Mike Amundsen</dd>
<dt>PHOTO:</dt>
@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 / uber-doc.xml
Last active August 29, 2015 13:57
parsing an UBER doc
<data id="user01" name="user"> <!-- URL=false + innerText=false + children=true + parent=false, so this is a container that belongs to the document -->
<data name="actions"> <!-- URL=false + innerText=false + children=true + parent=true, so this is a container that belongs to "user01" -->
<data rel="item" url="/user/1" action="read" /> <!-- URL=true + innerText=false + children=false + parent=true, so this is a transition that belongs to "user01/actions" -->
<data rel="/rels/replace" url="user/1" action="replace" template="#userUpdate" /> <!-- URL=true + innerText=false + children=false + parent=true, so this is a transition that belowngs to "user01/actions"-->
<data rel="/rels/delete" url="user/1" action="remove" /> <!-- URL=true + innerText=false + children=false + parent=true, so this is a transition that belowngs to "user01/actions" -->
<data rel="/rels/suspend" url="/suspendUser/{id}" action="append" /> <!-- URL=true + innerText=false + children=false + parent=true, so this is a transi
@mamund
mamund / keybase.md
Created March 16, 2014 18:49
keybase.md

Keybase proof

I hereby claim:

  • I am mamund on github.
  • I am mamund (https://keybase.io/mamund) on keybase.
  • I have a public key whose fingerprint is AD5D 8564 388E 366E E0DC 960C 6815 6BEE 29E9 4D39

To claim this, I am signing this object:

@mamund
mamund / gist:9779214
Last active August 29, 2015 13:57
Using Cj as a diff format
{
"collection" : {
"version" : "1.0",
"href" : "http://example.org/cj-diff.js",
"links" : [
{"rel" : "help", "href" : "http://example.org/cj-diff.html"},
{"rel" : "profile", "href" : "http://exmaple.org/profiles/cj-dff.alps"}
],
@mamund
mamund / uber-links-and-images.xml
Last active August 29, 2015 13:57
UBER representation that mixes inline text with child elements.
@mamund
mamund / data.xml
Created April 1, 2014 03:53
structure vs. data elements in design.
<root>
<thing name="car">
<part name="hood" />
<part name="door" />
<part name="fender" />
<part name="trunk" />
</thing>
</root>
@mamund
mamund / a-uber-nesting.xml
Last active August 29, 2015 13:57
UBER nesting of text
<uber version="1.0">
<data name="description">
<data name="prefix">My name is</data>
<data name="name">Stephen</data>
<data name="postfix">and it's Tuesday.</data>
</data>
</uber>
@mamund
mamund / a-uber-textnode.xml
Last active August 29, 2015 13:57
processing text nodes for UBER
<uber version="1.0">
<data name="description">
My name is
<data name="name">Stephen</data>
and it's Tuesday.
</data>
</uber>
@mamund
mamund / a-uber-leading-text.xml
Created April 1, 2014 22:47
handling leading text nodes in UBER w/ standard XSLT processing
<uber version="1.0">
<data name="description">
My name is
<data name="name">Stephen</data>
</data>
</uber>