Skip to content

Instantly share code, notes, and snippets.

digraph {
charset="utf-8";
// Edges
"B_:genid1" -> "Rhttps://github.com/inrupt/enterprise-start" [label="doap:homepage"];
"B_:genid1" -> "LInrupt Enterprise Solid User Onboarding App" [label="doap:name"];
"B_:genid1" -> LQuarkus [label="doap:platform"];
"B_:genid1" -> LJava [label="doap:programming-language"];
"B_:genid1" -> "B_:genid2" [label="doap:release"];
"B_:genid1" -> "B_:genid3" [label="doap:release"];
@langsamu
langsamu / Settled kittysplit participants with ampersand are encoded
Last active August 18, 2022 16:55
Settled kittysplit participants with ampersand are encoded
kittysplit participants with ampersands are shown encoded in the transactions section when settled.
Ampersands are not encoded when the transaction is not settled.
@langsamu
langsamu / ..GraphDB snippets
Last active March 6, 2020 12:55
GraphDB snippets
GraphDB snippets
@langsamu
langsamu / calculateRotation.py
Last active July 5, 2019 21:19
Calculate rotation based on movement in a Blender driver script
import bpy
import bpy.app
from mathutils import Vector
from mathutils import Quaternion
def calculateRotation(obj):
up = Vector((0, 0, 1))
diameter = obj.dimensions[0]
previousLocation = Vector(tuple(obj.get("previousLocation", [0, 0, 0])))
function f(α, n) {
if (α === 0)
return ++n;
else if (isFinite(α))
return [...Array(n)].reduce(n => f(α - 1, n), n);
else
return f(n, n);
}
LODE custom homepage
FileLoader.Load(
new WriteThroughHandler(
new NTriplesFormatter(), // Target format
File.CreateText(@"source path")),
@"destination path",
new TriGParser(TriGSyntax.Recommendation)); // Source format
@langsamu
langsamu / description.rdf
Last active September 11, 2018 20:45
asd
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns="http://www.w3.org/ns/sparql-service-description#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<Service rdfs:label="UK Parliament public SPARQL endpoint">
<endpoint rdf:resource="https://api.parliament.uk/sparql"/>
<defaultDataset>
<Dataset>
<defaultGraph>
<Graph rdf:type="void:Dataset" xml:base="https://id.parliament.uk/" xmlns="http://rdfs.org/ns/void#" xmlns:owl="http://www.w3.org/2002/07/owl#">
<uriSpace>https://id.parliament.uk/</uriSpace>
<uriLookupEndpoint rdf:resource="https://api.parliament.uk/query/resource?uri=" rdfs:label="URI lookup endpoint" rdfs:comment="Resources can also be referenced using their URIs." />