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 / hipache-docker
Last active Dec 28, 2015
Shell script to start a docker container and add it to hipache
View hipache-docker
# The MIT License (MIT)
# Copyright (c) <year> <copyright holders>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
niclashoyer /
Last active Aug 8, 2016
Fedora 19 Studio Setup

Fedora Studio Setup

niclashoyer / gist:7012182
Created Oct 16, 2013
Get all postboxes around Kiel, Germany
View gist:7012182[out:json];node[name%3DKiel]%3Bnode%28around%3A10000%29[amenity%3Dpost_box]%3Bout%3B
niclashoyer /
Last active Jan 17, 2018
Quick hack for a redis like interface for IndexedDB
errs =
transaction: 'Operation not allowed during transaction'
wrongtype: 'Operation against a key holding the wrong kind of value'
notransaction: 'Operation not allowed without transaction'
notsupported: 'Operation not supported'
toomuchop: 'Operation with too much operands'
# calculate hamming weight (for BITCOUNT command)
# see
hamming = (x) ->
niclashoyer /
Created Aug 28, 2013
minimal in-memory nodejs ldp container implementation (incomplete)
# npm install connect
connect = require 'connect'
accept = [
niclashoyer /
Last active Dec 20, 2015
IMAP mail retriever written in CoffeeScript to forward mail to another process.


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

	"imap": {
		"host": "",
		"user": "imapuser",
		"password": "imappassword",
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 /
Created Jun 6, 2013
Remove all Docker Containers
containers=`sudo find /var/lib/docker/graph/ -maxdepth 1 -type d -printf "%f "`
docker rmi $containers
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: <>
PREFIX rdfs: <>
PREFIX ldp: <>
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 / 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 <>
Copyright (C) 2012 Niclas Hoyer <>
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.
You can’t perform that action at this time.