This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" } | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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", |