Skip to content

Instantly share code, notes, and snippets.

View BigBlueHat's full-sized avatar
🎩
building Web things

BigBlueHat BigBlueHat

🎩
building Web things
View GitHub Profile
{
"@context": {
"@vocab": "https://www.iana.org/assignments/link-relations/",
"anchor": "@id",
"href": "@id",
"dct": "http://purl.org/dc/terms/",
"link": "https://www.iana.org/assignments/link-relations#",
"title": "http://purl.org/dc/terms/title"
"title*": "http://purl.org/dc/terms/title"
"type": "dct:format",
@BigBlueHat
BigBlueHat / README.md
Last active August 29, 2015 14:25 — forked from anonymous/README.md
JSON-LD Playground: Web Annotation Context for Hypothesis

Web Annotation Context for Hypothesis

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>
module.exports.getConversationsForUser = function (user, cb) {
db.query(
function (doc) {
if (doc.author) {
emit(doc.author)
}
},
{include_docs: true, key: user.userId}
).then(function (response) {
// response.doc should have the whole doc
@BigBlueHat
BigBlueHat / eloquent.php
Last active December 19, 2015 01:39 — forked from ziadoz/eloquent.php
revised to get this to work with Eloquent 4.0.3
<?php
class Post
{
protected $table = 'posts';
/**
* You can define your own custom boot method.
*
* @return void
**/