Skip to content

Instantly share code, notes, and snippets.

View donavon's full-sized avatar
🏁
nothing is happening

Donavon West donavon

🏁
nothing is happening
View GitHub Profile
@donavon
donavon / test_runner.js
Last active January 22, 2020 23:08 — forked from joakimbeng/test_runner.js
A small and simple Javascript test runner
/**
* A Javascript test runner in 20 lines of code
* From http://joakimbeng.eu01.aws.af.cm/a-javascript-test-runner-in-20-lines/
*/
(function () {
// The test queue:
var tests = [];
// Function to add tests:
this.test = function test (name, cb) {
<!DOCTYPE html>
<!-- File > New Project > Templates > JavaScript > Blank App; replace default.html with this -->
<html>
<head>
<meta charset="utf-8" />
<title>App2</title>
<!-- WinJS references -->
<link href="//Microsoft.WinJS.1.0.RC/css/ui-dark.css" rel="stylesheet" />
<script src="//Microsoft.WinJS.1.0.RC/js/base.js"></script>
@donavon
donavon / hal-catalog.json
Created April 10, 2012 19:35 — forked from domenic/hal-catalog.json
HAL version of catalog
{
"title": "Catalog for Domenic, page 2",
"description": "Contains lots of books, which is cool",
"page": 2,
"pageSize": 10,
"_links": {
"prev": { "href": "/docs?page=1", "type":"application/vnd.sidearm+json" },
"self": { "href": "/docs?page=2", "type":"application/vnd.sidearm+json" },
"next": { "href": "/docs?page=3", "type":"application/vnd.sidearm+json" }
},
@donavon
donavon / gist:2353348
Created April 10, 2012 18:11 — forked from pbouzakis/gist:2352989
Documents
// super simple
// all you need is the relation key, since the rest of the hypermedia control info is instead the individual items self relation
{
"http://rel.nkstdy.co/document": [
{
"ean":"032cfa77face18c7ce5cdac190d34b202f4a0574eb6437427ab018b59495445c",
"title":"JS2",
"dateAdded":"2012-04-03T19:32:07.583Z",
"dateModified":"2012-04-05T17:22:10.796Z",