Skip to content

Instantly share code, notes, and snippets.

View comeetie's full-sized avatar

Etienne Côme comeetie

View GitHub Profile
{
"version": 8,
"name": "Positron",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"mapbox:groups": {
"b6371a3f2f5a9932464fa3867530a2e5": {
"name": "Transportation",
"collapsed": false
freq unit quantile age sex levels geo A2008 A2009 A2010 A2011 A2012 A2013 A2014 A2015 A2016 A2017 A2018 A2019
A PC TOTAL Y_GE16 T BAD AL : : : : : : : : : 4.1 4.3 4.0
A PC TOTAL Y_GE16 T BAD AT 7.0 6.6 7.1 7.4 6.6 7.3 6.9 7.0 6.4 6.2 6.3 5.8
A PC TOTAL Y_GE16 T BAD BE 6.9 7.1 7.4 7.4 7.3 7.1 7.5 7.8 7.2 7.1 7.1 7.5 b
A PC TOTAL Y_GE16 T BAD BG 10.9 9.9 9.7 9.3 9.2 9.0 9.2 9.4 8.7 8.5 8.5 7.6
A PC TOTAL Y_GE16 T BAD CH 2.7 2.7 2.9 2.9 2.6 3.1 3.6 3.4 3.8 3.2 3.5 3.4
A PC TOTAL Y_GE16 T BAD CY 6.8 6.4 6.2 5.4 5.2 6.0 4.5 4.3 3.8 4.1 4.3 4.4
A PC TOTAL Y_GE16 T BAD CZ 10.6 10.4 9.7 10.0 10.3 10.5 9.5 9.1 9.7 9.2 9.1 8.7
A PC TOTAL Y_GE16 T BAD DE 6.5 6.4 6.7 6.6 6.9 6.6 6.7 6.9 6.9 6.8 6.8 7.0
A PC TOTAL Y_GE16 T BAD DK 5.4 5.0 5.5 5.5 5.3 5.1 5.6 5.3 5.5 6.0 5.8 6.4
url = "https://data.iledefrance-mobilites.fr/explore/dataset/traces-du-reseau-ferre-idf/download/?format=geojson&timezone=Europe/Berlin&lang=fr"
download.file(url,destfile = "reseau.geojson")
url = "https://data.iledefrance-mobilites.fr/explore/dataset/emplacement-des-gares-idf/download/?format=geojson&timezone=Europe/Berlin&lang=fr"
download.file(url,destfile = "stations.geojson")
library(sf)
library(ggplot2)
library(dplyr)
library(ggspatial)
@comeetie
comeetie / .block
Created December 3, 2019 21:09 — forked from micahstubbs/.block
Crossfilter Demo | es2015 d3v4
license: MIT
border: no
height: 1150
@comeetie
comeetie / fp.json
Last active September 18, 2019 20:59
{"links":[{"source":1,"target":16,"value":41},{"source":2,"target":16,"value":72},{"source":3,"target":16,"value":113},{"source":4,"target":16,"value":357},{"source":5,"target":16,"value":156},{"source":6,"target":16,"value":9},{"source":7,"target":16,"value":5},{"source":8,"target":16,"value":3},{"source":9,"target":16,"value":62},{"source":10,"target":16,"value":81},{"source":11,"target":16,"value":89},{"source":12,"target":16,"value":63},{"source":14,"target":16,"value":113},{"source":15,"target":16,"value":33},{"source":1,"target":17,"value":79},{"source":2,"target":17,"value":158},{"source":3,"target":17,"value":182},{"source":4,"target":17,"value":378},{"source":5,"target":17,"value":51},{"source":6,"target":17,"value":1},{"source":7,"target":17,"value":14},{"source":9,"target":17,"value":12},{"source":10,"target":17,"value":74},{"source":11,"target":17,"value":243},{"source":12,"target":17,"value":30},{"source":14,"target":17,"value":15},{"source":1,"target":18,"value":520},{"source":2,"target":18,"val
<!DOCTYPE html>
<html>
<head>
<title>@comeetie : carte données carroyées</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
@comeetie
comeetie / cartogram.js
Last active December 22, 2015 17:29
#leboncoin + #french + #cartogram
(function(exports) {
/*
* d3.cartogram is a d3-friendly implementation of An Algorithm to Construct
* Continuous Area Cartograms:
*
* <http://chrisman.scg.ulaval.ca/G360/dougenik.pdf>
*
* It requires topojson to decode TopoJSON-encoded topologies:
*
LABEL PROP TOTAL GAR
Adam 3.409090909 176 1
Adelaide 13.51351351 111 0
Adele 20.6557377 305 0
Adeline 3.885135135 592 0
Adrien 8.850574713 1740 1
Agathe 16.12903226 713 0
Agnes 12.93103448 116 0
Alan 3.191489362 188 1
Alban 6.918238994 159 1
@comeetie
comeetie / parissubway.css
Last active December 12, 2015 07:08
carto mss style for use with tilemill
Map {
background-color: #5ec1d5;
}
#countries {
::outline {
line-color: #125868;
line-width: 2;
line-join: round;
}