Skip to content

Instantly share code, notes, and snippets.

Carsten Keßler crstn

Block or report user

Report or block crstn

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
crstn / SNIPPET-FROM-single.php
Created Sep 28, 2012
Blognavigation zwischen Einträgen
View SNIPPET-FROM-single.php
<div class="post" id="post-<?php the_ID(); ?>">
<div id="prev-post"><?php previous_post_link('%link', '&laquo;') ?></div>
<div id="next-post"><?php next_post_link('%link', '&raquo;') ?></div>
crstn / README.txt
Created Oct 2, 2012 — forked from flaviaza/README.txt
Twitter bootstrap fixed table header using jQuery
View README.txt
Here is a simple jQuery plugin to make a table header fixed on top of a div when this is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<div class="row fixed-table">
<div class="table-content">
<table class="table table-striped table-fixed-header" id="mytable">
<thead class="header">
<th>Email Address</th>
crstn / gist:3830081
Created Oct 3, 2012
MUSIL publications list
View gist:3830081
<html xmlns=""
<meta http-equiv="Content-Type" content="text/html" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
crstn / gist:3990276
Created Oct 31, 2012
My Fuseki configuration
View gist:3990276
@prefix : <#> .
@prefix fuseki: <> .
@prefix rdf: <> .
@prefix rdfs: <> .
@prefix tdb: <> .
@prefix ja: <> .
[] rdf:type fuseki:Server ;
fuseki:services (
crstn / RDF in Turtle to PDF Graph
Last active Sep 15, 2018
Create a graph visualization from an RDF file using and
View RDF in Turtle to PDF Graph
rapper -i turtle -o dot model.ttl | dot -Tpdf -omodel.pdf
crstn / Query 1: Get all counts, sorted by date (new to old).sparql
Last active Dec 20, 2015
Demo for point in time data in HXL. See comments below for a how-to.
View Query 1: Get all counts, sorted by date (new to old).sparql
prefix hxl: <>
SELECT ?population ?count ?date
GRAPH ?g {
?population hxl:personCount ?count .
?g hxl:validOn ?date .
} ORDER BY ?population DESC(?date)
crstn / gist:6552662
Last active Dec 23, 2015
Transforms JSON files exported from the moves API [1] into GeoJSON, which can then be used in a number of applications, such as CartoDB or Leaflet. [1]
View gist:6552662
// this is the directory where you have your json files from the moves API stored
$dir = "/my/input/dir";
// this is where your geojson files will be stored
$outdir = "/my/output/dir";
$geojsonplaces = [
"type" => "FeatureCollection",
"features" => [ ],
crstn / functions.php
Created Feb 7, 2014
Piwik RSS feed tracking via blind pixels
View functions.php
// Add this to the functions.php of your wordpress Theme. Get the URL for the tracking pixel from your Piwik instance.
function feedFilter($query) {
if ($query->is_feed) {
return $query;
View iati.csv
country usd
MNE 212071344
EST -3643199
HUN -6611887
JOR 1289290880
ERI 42736336
SVN -1732240
MKD 116353200
MYS 10559068
SRB 143880736
crstn / index.html
Last active Aug 29, 2015
UNHCR refugee flows 2012
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>UNHCR Refugee Flows 2012</title>
font-family: "Helvetica", sans-serif;
text-align: center;
You can’t perform that action at this time.