Skip to content

Instantly share code, notes, and snippets.

View crstn's full-sized avatar
💭
🤓

Carsten Keßler crstn

💭
🤓
View GitHub Profile
name Est. GDP in USD 2015 Applicants since 2011 Est. Pop 2015 Applicants by pop Applicants by GDP
Austria 380.555 104489 8.556 12.21236559 274.5700359
Belgium 463.799 79209 11.239 7.047691076 170.7830332
Bulgaria 51.551 27124 7.166 3.785096288 526.1585614
Denmark 297.359 35302 5.629 6.271451412 118.7184514
Finland 235.276 14361 5.506 2.60824555 61.03895
France 2469.530 255800 64.213 3.983617025 103.5824631
Germany 3413.483 547034 81.360 6.723623402 160.2568403
Greece 207.148 42800 10.993 3.893386701 206.6155599
Hungary 126.691 129203 9.857 13.10774069 1019.82777
<html>
<head>
<title>Leaflet template</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/>
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://raw.githubusercontent.com/calvinmetcalf/leaflet-ajax/master/dist/leaflet.ajax.min.js"></script>
<style>
html, body, #map {
height: 100%;
@crstn
crstn / evac_zones-simplified.geojson
Created August 11, 2014 17:02
NYC Flood Evacuation Zones Map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@crstn
crstn / ACM SIGSPATIAL GIS 13
Created May 19, 2014 15:25
GIScience conference proceedings titles
Sweeping a Terrain by Collaborative Aerial Vehicles
Computing Highly Occluded Paths on a Terrain
On IO-efficient Viewshed Algorithms and Their Accuracy
Virtual Traffic for Real-World Challenges
An Opportunistic Client User Interface to Support Centralized Ride Share Planning
Evaluating Eco-Driving Advice Using GPS/CANBus Data
Energy-Optimal Routes for Electric Vehicles
Analysis and Evaluation of the Slugging Form of Ridesharing
Mapping Spatial Data to RDF: a SPARQL Endpoint for Brussels
Spatiotemporal Braitenberg Vehicles
@crstn
crstn / index.html
Last active August 29, 2015 13:57
UNHCR refugee flows 2012
<!DOCTYPE html>
<meta charset="utf-8">
<head>
<title>UNHCR Refugee Flows 2012</title>
<style>
body{
font-family: "Helvetica", sans-serif;
text-align: center;
}
@crstn
crstn / iati.csv
Last active August 29, 2015 13:57 — forked from mbostock/.block
country usd
MNE 212071344
EST -3643199
HUN -6611887
JOR 1289290880
ERI 42736336
SVN -1732240
MKD 116353200
MYS 10559068
SRB 143880736
@crstn
crstn / functions.php
Created February 7, 2014 19:26
Piwik RSS feed tracking via blind pixels
// 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) {
add_filter('the_content','feedContentFilter');
}
return $query;
}
add_filter('pre_get_posts','feedFilter');
@crstn
crstn / gist:6552662
Last active December 23, 2015 00:19
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] http://dev.moves-app.com
<?php
// 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
crstn / Query 1: Get all counts, sorted by date (new to old).sparql
Last active December 20, 2015 12:29
Demo for point in time data in HXL. See comments below for a how-to.
prefix hxl: <http://hxl.humanitarianresponse.info/ns/#>
SELECT ?population ?count ?date
WHERE {
GRAPH ?g {
?population hxl:personCount ?count .
?g hxl:validOn ?date .
}
} ORDER BY ?population DESC(?date)
@crstn
crstn / RDF in Turtle to PDF Graph
Last active September 15, 2018 10:11
Create a graph visualization from an RDF file using http://librdf.org/raptor/ and http://www.graphviz.org.
rapper -i turtle -o dot model.ttl | dot -Tpdf -omodel.pdf