Skip to content

Instantly share code, notes, and snippets.

View skoslitz's full-sized avatar

Sebastian Koslitz skoslitz

View GitHub Profile
@skoslitz
skoslitz / build_caddy.sh
Created September 15, 2017 07:43 — forked from jaymecd/build_caddy.sh
Build Caddy w/ plugins from sources
#!/usr/bin/env bash
#
# Big respect to @mholt6 for making Caddy.
#
#/ Usage:
#/ build_caddy.sh [-h]
#/
#/ It builds Caddy with plugins defined in `plugins` file.
#/
#/ Cross compilation:
@skoslitz
skoslitz / .Project-to-Bounding-Box
Last active November 2, 2016 08:44 — forked from mbostock/.block
Project to Bounding Box
license: gpl-3.0
@skoslitz
skoslitz / .d3-basic-map-functions
Last active November 2, 2016 08:43 — forked from HarryStevens/.block
Basic Map Functions
license: gpl-3.0
@skoslitz
skoslitz / _.md
Created March 7, 2016 20:23
web map with d3js
@skoslitz
skoslitz / index.html
Last active August 29, 2015 14:16
crossfilter playground
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<title>**crossfilter*Playground**</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/3.3.1/lodash.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.11/crossfilter.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<link href="//cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.2/custom/bootstrap.min.css" rel='stylesheet'>
</head>
@skoslitz
skoslitz / events.csv
Last active August 29, 2015 14:13
d3 brush
count time_begin
1 1002-01-01
3 1004-01-01
2 1005-01-01
1 1006-01-01
1 1019-01-01
1 1019-12-01
1 1028-01-01
1 1029-01-01
1 1035-01-01
@skoslitz
skoslitz / loadJson.js
Created October 1, 2014 12:40
load json with JQuery
<script type="text/javascript">
var apiUrl = "http://localhost/yiiRest/basic/web/index.php/event/temporal"
$.ajax({
url: apiUrl,
dataType: 'json',
success: function(data){
console.log(data);
}
@skoslitz
skoslitz / loadJson.js
Last active August 29, 2015 14:07
load json with D3
<script type="text/javascript">
var visData; // a global
var apiUrl = "http://localhost/yiiRest/basic/web/index.php/event/temporal"
d3.json(apiUrl)
.header("Content-Type", "application/json")
.get(function(error, jsonData) {
visData = jsonData;
});
@skoslitz
skoslitz / countries_1e5.json
Created August 8, 2014 08:43 — forked from jczaplew/countries_1e5.json
Adaptive Composite Map Projection with d3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Lefalet shortcuts for common tile providers - is it worth adding such 1.5kb to Leaflet core?
L.TileLayer.Common = L.TileLayer.extend({
initialize: function (options) {
L.TileLayer.prototype.initialize.call(this, this.url, options);
}
});
(function () {