Skip to content

Instantly share code, notes, and snippets.

@iltempe
iltempe / biblioteche_jekyll.txt
Last active August 5, 2017 21:41
Lista Biblioteche in Jekyll
<ul>
{% for member in site.data.puntidiinteressebiblioteche %}
<li>
{{ member.nome }} : {{ member.indirizzo }}
</li>
{% endfor %}
</ul>
<ul>
{% for member in site.data.puntidiinteressebiblioteche %}
<li>
<a href="http://www.openstreetmap.org/?mlat={{ member.Y }}&mlon={{ member.X }}&zoom=12">{{ member.nome }}</a>
</li>
{% endfor %}
</ul>
---
layout: nil
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title }}",
"url" : "{{ post.url }}",
"date" : "{{ post.date | date: "%B %d, %Y" }}",
@iltempe
iltempe / mappa.html
Last active August 15, 2017 16:23
Generate Maps with Jekyll
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.min.js"></script>
<style>
#map{ height: 500px }
</style>
<div class="row"> <div class="col-md-2">Mappa:</div><div class="col-md-4"> <div id="map"></div> </div> </div>
@iltempe
iltempe / travis.yml
Created August 28, 2017 17:52
travis example file
language: ruby
rvm:
- 2.3.3
script:
- set -e
- bundle exec jekyll build
after_success:
- git clone https://$GH_REF
- cd $(basename ${GH_REF%.git})
https://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%28node%5B%22amenity%22%3D%22drinking%5Fwater%22%5D%2841%2E883013564065%2C12%2E482099533081%2C41%2E896990545731%2C12%2E501904964447%29%3B%29%3Bout%3B%3E%3Bout%20skel%20qt%3B%0A
-o
fontane_roma.json
https://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%28node%5B%22natural%22%3D%22tree%22%5D%2841%2E883013564065%2C12%2E482099533081%2C41%2E896990545731%2C12%2E501904964447%29%3B%29%3Bout%3B%3E%3Bout%20skel%20qt%3B%0A
-o
alberi_roma.json
https://overpass-api.de/api/interpreter?data=%5Bout%3Ajson%5D%5Btimeout%3A25%5D%3B%28node%5B%22tourism%22%3D%22museum%22%5D%2841%2E883013564065%2C12%2E482099533081%2C41%2E896990545731%2C12%2E501904964447%29%3Bway%5B%22tourism%22%3D%22museum%22%5D%2841%2E883013564065%2C12%2E482099533081%2C41%2E896990545731%2C12%2E501904964447%29%3Brelation%5B%22tourism%22%3D%22museum%22%5D%2841%2E883013564065%2C12%2E482099533081%2C41%2E896990545731%2C12%2E501904964447%29%3B%29%3Bout%3B%3E%3
###############################################################################
# CONFIGURATION
# configure the EMS tags that you want as ZIP vector data
emergency_tags=["EMSR238"]
###############################################################################
#Fonte http://sumo.dlr.de/wiki/Simulation_of_Urban_MObility_-_Wiki
# dati .osm mappa da www.openstreetmap.org © OpenStreetMap contributors
cd ${0%/*}
#1: Scaricare i dati in un file OSM da OpenStreetMap.org (nel mio caso galciana.osm)
#2: Generare il file .net per la simulazione (Netconvert importa le informazioni relative alle strade e le converte in un unico formato usabile da altri tool)
netconvert --osm-files galciana.osm -o galciana.net.xml --output.street-names true --output.original-names true
@iltempe
iltempe / conf
Created December 16, 2017 21:45
configuration file for EMS Toolbox
EMSR260
observed_event_a;built_up_a;facilities_a;hydrography_a;natural_land_use_a;sensor_metadata_a;transportation_l;transportation_p
pdf;300
@iltempe
iltempe / play.sh
Created December 26, 2017 16:27
Suonare un allarme tramite i dati in emergenza
#!/bin/bash
#vedere doc http://python-rsstail.readthedocs.io/en/latest/
rsstail -i 3 -u http://emergency.copernicus.eu/mapping/list-of-components/EMSR261/feed -n 0 | while read line
do
afplay allarme.mp3
echo "$line"
done