Skip to content

Instantly share code, notes, and snippets.

Iltempe iltempe

Block or report user

Report or block iltempe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@iltempe
iltempe / upload_doc.py
Last active Apr 30, 2018
archiviare documenti su internet archive
View upload_doc.py
from internetarchive import upload
import os
file="path/documento.pdf"
descr="descrizione documento"
head, tail = os.path.split(file)
md = dict(subject='tag1;tag2;tag3', description=descr)
r = upload(tail, files=file, metadata=md)
r[0].status_code
View programma.md

Programma del partito Pippo

Il nostro programma elettorale

Siamo il partito Pippo, le nostre idee le troverai in questo documento. Di seguito i punti riguardanti il nostro programma elettorale:

Sanità

View programma
Programma del partito Pippo
===========================
Il nostro programma elettorale
----------------------------
Siamo il partito Pippo, le nostre idee le troverai in questo documento. Di seguito i punti riguardanti il nostro programma elettorale:
### Sanità
@iltempe
iltempe / data.csv
Created Dec 30, 2017
exiftool dataset extracted
View data.csv
SourceFile GPSLatitude GPSLongitude
./8.jpg 43.8865623472222 11.0489912030556
./9.jpg 43.8860435483333 11.0501651763889
./11.jpg 43.8868751525 11.0550527572222
./10.jpg 43.8851814269444 11.0526170730556
./4.jpg 43.8856506347222 11.0476722716667
./5.jpg 43.8860473630556 11.0476732252778
./7.jpg 43.8860473630556 11.0476732252778
./6.jpg 43.8856506347222 11.0476722716667
./2.jpg 43.8852233886111 11.0470733641667
@iltempe
iltempe / map.sh
Created Dec 30, 2017
exiftool generator dataset (install in folder of pics)
View map.sh
exiftool -n -gpslatitude -gpslongitude -csv .> data.csv
View EXIFTOOL example
MacBook-Pro-di-Matteo:template TeoPro$ exiftool 1.jpg
ExifTool Version Number : 10.70
File Name : 1.jpg
Directory : .
File Size : 3.7 MB
File Modification Date/Time : 2017:12:30 14:44:25+01:00
File Access Date/Time : 2017:12:30 23:43:00+01:00
File Inode Change Date/Time : 2017:12:30 22:39:22+01:00
File Permissions : rw-r--r--
File Type : JPEG
@iltempe
iltempe / play.sh
Created Dec 26, 2017
Suonare un allarme tramite i dati in emergenza
View play.sh
#!/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
@iltempe
iltempe / conf
Created Dec 16, 2017
configuration file for EMS Toolbox
View conf
EMSR260
observed_event_a;built_up_a;facilities_a;hydrography_a;natural_land_use_a;sensor_metadata_a;transportation_l;transportation_p
pdf;300
View procedure.sh
#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
View get_ems_zips.py
###############################################################################
# CONFIGURATION
# configure the EMS tags that you want as ZIP vector data
emergency_tags=["EMSR238"]
###############################################################################
You can’t perform that action at this time.