Skip to content

Instantly share code, notes, and snippets.

Niclas Hoyer niclashoyer

  • Kiel, Germany
Block or report user

Report or block niclashoyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@niclashoyer
niclashoyer / policies.sparql
Created Aug 7, 2012
SPARQL Query for SHI3LD Access Policy Selection
View policies.sparql
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX s4ac: <http://ns.inria.fr/s4ac/v2#>
SELECT DISTINCT
?m ?p ?title ?protected ?privilege ?acs ?type ?query
WHERE {{
BIND('1' AS ?m)
?p a s4ac:AccessPolicy ;
s4ac:appliesTo ?protected .
OPTIONAL {
View dabblet.css
/*
* Responsive Test
*/
/* reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* stuff */
html { padding-top: 4em; counter-reset: item }
* { box-sizing: border-box }
View dabblet.css
/*
* Responsive Test
*/
/* reset */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/* stuff */
html { padding-top: 4em; counter-reset: item }
* { box-sizing: border-box }
@niclashoyer
niclashoyer / config.php
Created Jun 16, 2012
Get Magento Configurations as XML
View config.php
<?php
/*
Put this file to /magento/shell/config.php and run
$ php shell/config.php | tidy -xml -i > config.xml
*/
require_once 'abstract.php';
View fritzing-fedora.md

Dependencies

sudo dnf install git qt5-qtbase-devel qt5-qtsvg-devel qt5-qtserialport-devel

Building

@niclashoyer
niclashoyer / literate_coffee_script.lang
Last active Dec 10, 2015
Syntax highlighting for Literate CoffeeScript in gtksourceview, e.g. gedit.
View literate_coffee_script.lang
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Niclas Hoyer <niclas@verbugt.de>
Copyright (C) 2012 Niclas Hoyer <niclas@verbugt.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
@niclashoyer
niclashoyer / height.sparql
Created May 5, 2013
SPARQL query to get the "height" or distance to a common parent class.
View height.sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ldp: <http://www.w3.org/ns/ldp#>
PREFIX : <http://example.com#>
SELECT ?r (MIN(?h) AS ?height) WHERE {
VALUES ?r { :h0 :h1 :h2 :h3 :h4 :h5 :h6 }
VALUES ?p { ldp:Resource }
{
?r rdf:type ?p
@niclashoyer
niclashoyer / docker-cleanup.sh
Created Jun 6, 2013
Remove all Docker Containers
View docker-cleanup.sh
#!/bin/bash
containers=`sudo find /var/lib/docker/graph/ -maxdepth 1 -type d -printf "%f "`
docker rmi $containers
@niclashoyer
niclashoyer / colour-light.xml
Last active Dec 19, 2015
colour-light style for gedit
View colour-light.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- save to ~/.local/share/gtksourceview-3.0/styles/ -->
<!--
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
@niclashoyer
niclashoyer / _echoimap.md
Last active Dec 20, 2015
IMAP mail retriever written in CoffeeScript to forward mail to another process.
View _echoimap.md

echoimap

Create a settings file ~/.echoimap.json with the following content:

{
	"imap": {
		"host": "imap.example.com",
		"user": "imapuser",
		"password": "imappassword",
You can’t perform that action at this time.