Skip to content

Instantly share code, notes, and snippets.

View napo's full-sized avatar
💭
guru meditation

Maurizio Napolitano napo

💭
guru meditation
View GitHub Profile
@napo
napo / gist:2935639
Created June 15, 2012 09:43
ckanext-harvest import
paster --plugin=ckanext-harvest harvester initdb --config=/etc/ckan/std/std.ini
Traceback (most recent call last):
File "/usr/local/ckan/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/usr/local/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/usr/local/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/usr/local/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 218, in run
@napo
napo / gist:2935688
Created June 15, 2012 09:54
ckanext-spatial and ckan 1.8(?)
paster --plugin=ckanext-spatial spatial initdb 4326 --config /etc/ckan/std/std.ini
Traceback (most recent call last):
File "/usr/local/ckan/bin/paster", line 9, in <module>
load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
File "/usr/local/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 84, in run
invoke(command, command_name, options, args[1:])
File "/usr/local/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 123, in invoke
exit_code = runner.run(args)
File "/usr/local/ckan/local/lib/python2.7/site-packages/paste/script/command.py", line 218, in run
@napo
napo / README.md
Created June 13, 2014 14:31
sicilia

README is empty

@napo
napo / overpass.geojson
Created July 5, 2017 07:13 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
destdir="$HOME/superset"
sudo apt-get install build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev
virtualenv $destdir
cd $destdir
. bin/activate
pip install superset
fabmanager create-admin --app superset
superset db upgrade
superset load_examples
superset init
@napo
napo / attributi_spazzamento.csv
Last active April 13, 2018 09:30
attributi di spazzamento.shp - solo desvia, codice e percorso
strada desvia percorso
5290 VIA 4 NOVEMBRE 32
430 VIA BRESCIA 29
3150 VIA DEI SOLTERI 28
2495 VIA A. PRANZELORES 28
3510 VIA VITTORIO VENETO 17
3832 VIA V. DE RICCABONA 27
1630 VIA B. MALFATTI 16
1730 VIA A. MANZONI 15
1130 PIAZZA DI FIERA 7
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<!-- inserire il titolo della mappa -->
<title>titolo della mappa</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<script src="http://frogcat.github.io/leaflet-tilelayer-mask/leaflet-tilelayer-mask.js"></script>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
nome colonna percorso xml
codice //STATOPS/PRONTO_SOCCORSO/COD_PS_OD
località //STATOPS/PRONTO_SOCCORSO/LOCALITA
pronto_soccorso //STATOPS/PRONTO_SOCCORSO/PS
data //STATOPS/DATA_AGGIORNAMENTO
attesa //STATOPS/PRONTO_SOCCORSO/ATTESA
ambulatorio //STATOPS/PRONTO_SOCCORSO/AMBULATORIO
osservazione_bianco //STATOPS/PRONTO_SOCCORSO/OSSERVAZIONE
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 14 columns, instead of 6. in line 5.
OBJECTID,ID_NLS,PROV,COMUNE,INDIRIZZO,DENOMINAZIONE,INSEGNA,RIC,INIZIO_ATT,POINT_X,POINT_Y,ISTAT,lon,lat
1,7530,LO,LODI,"CORSO VITTORIO EMANUELE II,0032",ENOTECA E DOLCERIE S.N.C. DEI FRATELLI DI TOMA NICOLA E SABRINA,enoteca e dolcerie DE TOMA,Storica Attivita',1927,9.50113006,45.31334665,98031,9.501130064783348,45.31334665167601
10,7582,CR,CREMONA,"VIA DEL GIORDANO,55-57-59",COLORIFICIO PICCIONI SAS DI PICCIONI ATTILIO E C.,COLORIFICIO PICCIONI SAS DI PICCIONI ATTILIO E C.,Storica Attivita',1962,10.01912074,45.13012024,19036,10.019120738917318,45.13012023655117
100,7700,CR,CREMONA,"VIA DANTE ALIGHIERI,80",TRATTORIA LA PICCOLA DI BOCCELLI DANIELE E C. SNC,TRATTORIA LA PICCOLA,Storica Attivita',1960,10.01985338,45.14209484,19036,10.019853376901843,45.14209483799982
101,7697,MI,MILANO,"P.ZZA DUOMO - PORT.MERIDIONALI,SNC",LABO' GIAMPIERO LUIGI,Edicola Labò,Storica Attivita',1951,9.22962973,45.68860619,15146,9.229629728622903,45.68860619352299
102,7657,VA,OLGIATE OLONA,"VIA DEL SEMPIONE,108/112",COLORIFICIO RIG