Skip to content

Instantly share code, notes, and snippets.

View rhalff's full-sized avatar

Robbert Halff rhalff

  • Robbert Halff
  • Netherlands
View GitHub Profile
{
"@context": "http://json-ld.org/contexts/person.jsonld",
"@id": "http://dbpedia.org/resource/John_Lennon",
"name": "John Lennon",
"born": "1940-10-09",
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}
{
"@context": {
"grddl": "http://www.w3.org/2003/g/data-view#",
"ma": "http://www.w3.org/ns/ma-ont#",
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfa": "http://www.w3.org/ns/rdfa#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rif": "http://www.w3.org/2007/rif#",
"rr": "http://www.w3.org/ns/r2rml#",
{
"@context": {
"oiot": "http://openiot.org/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"rdfs:subClassOf": {
"@type": "@id"
},
"name": "rdfs:label",
"description": "rdfs:comment",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Midgard Create example</title>
<script src="../deps/jquery-1.7.1.min.js"></script>
<script src="../deps/jquery-ui-1.8.18.custom.min.js"></script>
<script src="../deps/underscore-min.js"></script>
<script src="../deps/backbone-min.js"></script>
<script src="../deps/vie-min.js"></script>
{
"@context": "context.jsonld",
"@graph": [
{
"@id": "_:g70333128676980",
"@type": "ContactPoint",
"name": "Macháček",
"telephone": "+420 728 585 881",
"type": {
"@value": "Kontaktní osoba",
@rhalff
rhalff / Issue
Last active December 31, 2015 23:08
FBP Simple Gist
'<article><title>Hello World!</title></article>' -> xml XML2JS(utils/xml2js) result -> msg Console(console/log)
Generates HTML pages from markdown documents
+-----------------------+
+----------------- | data:string | -+
| +-----------------------+ |
| | |
| | out:out|in:path |
| v |
| +-----------------------+ |
| | fs:exists | |
@rhalff
rhalff / Infinity
Last active January 2, 2016 22:09
title: Infinity
description: Keeps on counting and logging
# multiply by 10
10 -> @y Multiply(math/multiply)
IsFinite(object/isFinite)
# output of multiply goes to Log
Multiply out -> msg Log(console/log)
digraph {
label="Simple file request";
http_request -> json_parse [label="out:body|in:in"];
json_parse -> json_path [label="out:out|in:json"];
json_path -> console_log [label="out:matches|in:msg"];
http_request [label="http:request"];
json_parse [label="json:parse"];
json_path [label="json:path"];
console_log [label="console:log"];
}
CHI fs::glob-3 { '0.01857474958524108': 0.5248712964821607 }
0.5248712964821607 'fs::glob-3:match'
0.5248712964821607 'path::basename-0:result'
0.5248712964821607 'fs::file-7:file'
CHI fs::glob-3 { '0.01857474958524108': 0.9304251880384982 }
0.9304251880384982 'fs::glob-3:match'
0.9304251880384982 'path::basename-0:result'
0.9304251880384982 'fs::file-7:file'
CHI fs::glob-3 { '0.01857474958524108': 0.40197994164191186 }
0.40197994164191186 'fs::glob-3:match'