This is a paragraph.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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/sh | |
# This is a barebones and super brittle script by Moacir P. de Sá Pereira | |
# (@muziejus on GitHub) for installing part of the Stanford NLP library to a | |
# DHBox (http://dhbox.org) | |
# First, we need to upgrade Java | |
# from: http://stackoverflow.com/questions/30177455/moving-from-jdk-1-7-to-jdk-1-8-on-ubuntu | |
# Newer versions of java *are* available |
This file contains 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
# citibike stations: http://appservices.citibikenyc.com/v1/station/list | |
# Save this json file as "citibikestations.json" | |
# The result is a file called "citibikestations.geojson," which Qgis will read with no trouble. Leaflet too. | |
require 'json' | |
bike_stations = JSON.parse(File.read('citibikestations.json')) | |
geojson_array = bike_stations["results"].map do |p| | |
{ "type" => "Feature", | |
"geometry" => { | |
"type" => "Point", | |
"coordinates" => [p["longitude"], p["latitude"]] |
NewerOlder