Skip to content

Instantly share code, notes, and snippets.

View sandervd's full-sized avatar

Sander Van Dooren sandervd

  • Essential Complexity
  • Leuven, Belgium
View GitHub Profile
import uno
from pathlib import Path
from com.sun.star.beans import PropertyValue
from os.path import abspath
import getopt, sys
def create_instance():
localContext = uno.getComponentContext()
resolver = localContext.ServiceManager.createInstanceWithContext(
"com.sun.star.bridge.UnoUrlResolver", localContext )
DELETE {
?s ?p1 ?bn .
?bn ?p2 ?o .
}
INSERT {
?s ?p1 ?nbn .
?nbn ?p2 ?o .
}
WHERE {
{
@sandervd
sandervd / rdf
Created September 15, 2022 13:49
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:locn="http://www.w3.org/ns/locn#"
xmlns:schema="http://schema.org/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:http="http://www.w3.org/2006/http#"
xmlns:epos="https://www.epos-eu.org/epos-dcat-ap#"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
PREFIX ex: <http://example.com/>
# This query deletes an aggregate (entity with all its blanknodes)
DELETE {
?object_id ?property ?value
}
WHERE {
{
# Build a list of all blanknodes reachable from the root (max depth 7)
SELECT ?root ?l1 ?l2 ?l3 ?l4 ?l5 ?l6 ?l7
WHERE {
// ==UserScript==
// @name Fosdem
// @namespace sandervandooren-fosdem.org
// @version 1
// @grant none
// ==/UserScript==
var css = document.createElement('style');
css.type = 'text/css';
css.innerHTML = '.timetable tbody td.event-notgoing {background-color: !important white;}';
document.body.appendChild(css);
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Joinup Individual Contributor Assignment Agreement

Thank you for your interest in contributing to Joinup, owned by the European Union ("We" or "Us"). This contributor agreement ("Agreement") documents the rights granted by contributors to Us. By creating a pull request you implicitly agree with the contents of this document. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.

##1 Definitions "You" means the individual who Submits a Contribution to Us. "Contribution" means any work of authorship that is Submitted by You to Us in which You own or assert ownership of the Copyright. If You do not own the Copyright in the entire work of authorship, please contact Joinup legal support through the form in https://joinup.ec.europa.eu/contact. "Copyright" means all rights protecting works of authorship owned or controlled by You, including copyright, moral and neighboring rights, as appropriat

// Go to Github
javascript:(function(){
var href=String(window.location.href);
var ticketId=href.substr(href.lastIndexOf('/') + 1);
var githubPath='https://github.com/ec-europa/joinup-dev/tree/' + ticketId;
window.open(githubPath)
})();
// Go to Jira
javascript:(function(){
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/**
* @file
* Drush implementation for the cleanup_tool module.
*/
/**
* Implementats hook_drush_command().