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
# (c) 2011 Bart Coppens | |
# Licensed under GPLv3+ | |
import gtk | |
import cairo | |
import hildon | |
import hildondesktop | |
import pycurl | |
import StringIO | |
import math |
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
(load "~/elisp/autoloads" 'install) | |
(add-to-list 'load-path "~/elisp/") | |
(set-frame-height (selected-frame) 48) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. | |
;; If there is more than one, they won't work right. | |
'(csv-separators (quote (";"))) | |
'(cua-mode t nil (cua-base)) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// try requiring some modules from NPM and then hit Run | |
require('cat-picture') |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var ldf = require('ldf-client'); | |
var fragmentsClient = new ldf.FragmentsClient('http://fragments.dbpedia.org/2014/en'); | |
var query = 'SELECT * { ?s ?p <http://dbpedia.org/resource/Belgium>. ?s ?p ?o } LIMIT 10', | |
results = new ldf.SparqlIterator(query, { fragmentsClient: fragmentsClient }); |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var request = require('request'); | |
request('http://irail.be',{protocol:'http'}, function (err, response) { | |
console.log("Now should contain https in the uri: ", response.request.uri.href); | |
}); |
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
<!--Maps data to both schema and datex. I extended datex with URIs from dublin core terms (dct) and geo. Where possible, I added boht schema and datex approach--> | |
<html prefix="dtx: http://vocab.datex.org/terms# | |
dct: http://purl.org/dc/terms/ | |
schema: http://schema.org/ | |
geo: http://www.w3.org/2003/01/geo/wgs84_pos#"> | |
<article typeof="dtx:ParkingSite schema:ParkingFacility" resource="{{urlFromPage}}"> | |
<h2 property="dct:title schema:name">{{data.name}}</h2> | |
<p property="dct:spatial schema:address">{{data.address}}</p><!--We should have a more readable address here. Schema.org has a better example: http://schema.org/address (see RDFa and JSONLD examples)--> | |
<p property="">{{data.city}}</p><!--We can map a city to a URI... Should we? Furthermore: shouldn't this be part of the address property?--> | |
<p property="dtx:contactDetailsTelephoneNumber schema:telephone">{{data.telephone}}</p> |
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
{ | |
"@context": { | |
"dcterms": "http://purl.org/dc/terms/", | |
"hydra": "http://www.w3.org/ns/hydra/core#", | |
"schema" : "http://schema.org/", | |
"foaf:topicOf": { | |
"@id": "http://xmlns.com/foaf/0.1/topicOf", | |
"@type": "@id" | |
} | |
}, |
OlderNewer