This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'atom-workspace': | |
| 'cmd-shift-m': 'tree-view:rename' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| insert into routes_stops (route_id, trajectory_id, direction_id, stop_id, "order") | |
| select | |
| r.route_id as route_id, | |
| r.trajectory_id as trajectory_id, | |
| r.direction_id as direction_id, | |
| s.stop_id as stop_id, | |
| st_linelocatepoint(st_linemerge(r.geom), s.geom) as "order" | |
| from routes r | |
| inner join trajectories_stop_places tsp | |
| on tsp.trajectory_id = r.trajectory_id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select | |
| distinct on(s.stop_id) | |
| r.route_number, | |
| r.route_id, | |
| s.stop_id, | |
| s.stop_name_long, | |
| rs."order", | |
| s.geom as geom | |
| from routes r | |
| inner join routes_stops rs on |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| instances=( | |
| amsterdam_netherlands | |
| beijing_china | |
| berlin_germany | |
| madrid_spain | |
| moscow_russia | |
| london_england | |
| new-york_new-york |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env node | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const turf = require('turf'); | |
| if (process.argv.length <= 2) { | |
| console.log(`Usage: ${__filename} input output`); | |
| process.exit(-1); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.css" /> | |
| <script src="http://cdn.leafletjs.com/leaflet-0.7.5/leaflet.js"></script> | |
| <script src="http://kartena.github.io/Proj4Leaflet/lib/proj4-compressed.js"></script> | |
| <script src="http://kartena.github.io/Proj4Leaflet/src/proj4leaflet.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function compose() { | |
| var fns = [].slice.call(arguments); | |
| return function() { | |
| var args = [].slice.call(arguments); | |
| var result = fns.reduceRight(function(acc, fn) { | |
| return [fn.apply(null, acc)]; | |
| }, args); | |
| return result[0]; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import mapboxgl from 'mapbox-gl/dist/mapbox-gl.js'; | |
| const accessToken = 'pk.eyJ1IjoiaHVtYW5zIiwiYSI6ImNpcDZzdm80cjAwMTB1d203ZmRqZTdwbWEifQ.up9_Pt9XqDhp6m0KLHcbIw'; | |
| class Map extends Component { | |
| componentDidMount() { | |
| mapboxgl.accessToken = accessToken; | |
| const map = new mapboxgl.Map({ | |
| container: 'map', |