Skip to content

Instantly share code, notes, and snippets.

Andrea Borruso aborruso

  • Palermo, Italy
Block or report user

Report or block aborruso

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
View output.rdf
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:socrata="http://www.socrata.com/rdf/terms#" xmlns:dcat="http://www.w3.org/ns/dcat#" xmlns:ods="http://open-data-standards.github.com/2012/01/open-data-standards#" xmlns:dcterm="http://purl.org/dc/terms/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dsbase="https://www.dati.lombardia.it/resource/" xmlns:ds="https://www.dati.lombardia.it/resource/j25r-r7bk/" xmlns:usps="http://www.w3.org/2000/10/swap/pim/usps#">
<dsbase:j25r-r7bk rdf:about="https://www.dati.lombardia.it/resource/j25r-r7bk/row-8zqu~3umc_xnrw">
<socrata:rowID>row-8zqu~3umc_xnrw</socrata:rowID>
<rdfs:member rdf:resource="https://www.dati.lombardia.it/resource/j25r-r7bk"/>
<ds:id>103</ds:id>
<ds:tipologia>Az. Agricola didattico sperimentale</ds:tipologia>
<ds:ragione_sociale>Podere Iseppina - I.P.S.A.A. "E.
View hereoutput.json
{
"response": {
"metaInfo": {
"timestamp": "2019-08-30T15:08:59Z",
"mapVersion": "8.30.99.156",
"moduleVersion": "7.2.201934-5039",
"interfaceVersion": "2.6.67",
"availableMapVersion": [
"8.30.99.156"
]
View test-suite.log
==========================================
mlr 5.5.0: c/reg_test/test-suite.log
==========================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
View casaDelleDonne.md

Chiediamo di attivarvi da questo momento fino alla mezzanotte di stasera 30 agosto con una e-mail da inviare alle istituzioni.

E per arrivare anche sui social, fate una foto allo schermo del computer con la mail e postatela su fb, instagram e twitter taggando il Comune di Roma e la Regione Lazio. Facciamo sentire la nostra voce ovunque.

Spedite la mail agli indirizzi indicati qui sotto:

View workflow.py
def process(table):
table['hashtag']=table.text.str.findall(r'\B#\w*[a-zA-Z]+\w*').str.join(',')
return table
View pg.sh
#!/bin/bash
set -x
gdal_translate -of GTiff -gcp 4333.54 3668.77 1.96015 37.6478 -gcp 10619 6251.78 2.03619 37.6254 -gcp 14407.2 15736.9 2.08554 37.5354 -gcp 2817.28 20334 1.95038 37.4879 "/mnt/c/Users/pigre/Desktop/test_georef/Scan0122.tif" "/mnt/c/Users/pigre/Desktop/test_georef/Scan0122_tra.tif"
gdalwarp -r near -order 1 -co COMPRESS=NONE "/mnt/c/Users/pigre/Desktop/test_georef/Scan0122_tra.tif" "/mnt/c/Users/pigre/Desktop/test_georef/Scan0122_modificatoP1.tif"
View lazioServizi.csv
@id Value
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101393 http://dati.beniculturali.it/mibact/luoghi/resource/Service/Percorsi_segnalati
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101395 http://dati.beniculturali.it/mibact/luoghi/resource/Service/Archivio
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101395 http://dati.beniculturali.it/mibact/luoghi/resource/Service/Biblioteca
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101395 http://dati.beniculturali.it/mibact/luoghi/resource/Service/Bookshop
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101395 http://dati.beniculturali.it/mibact/luoghi/resource/Service/Fototeca
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101395 http://dati.beniculturali.it/mibact/luoghi/resource/Service/Visite_guidate
http://dati.beniculturali.it/mibact/luoghi/resource/CulturalInstituteOrSite/101397 h
View goods.csv
We can't make this file beautiful and searchable because it's too large.
SUPPLIER_PART_NUMBER,MANUFACTURER_NAME,MANUFACTURER_PART_NUMBER,SHORT_DESCRIPTION,LONG_DESCRIPTION,NOTES_COMMENTS,CATEGORY_OF_PRODUCT_1,CATEGORY_OF_PRODUCT_2,CATEGORY_OF_PRODUCT_3,RESELLER_BUY_EX,RRP_EX,GOV_BUY_EX,GOV_RETAIL_EX,RESELLER_BUY_INC,RRP_INC,GOV_BUY_INC,GOV_RETAIL_INC,SERIALIZED,AVAILABILITY_M,AVAILABILITY_S,AVAILABILITY_B,AVAILABILITY_P,EOR_MARKER,WEIGHT,HEIGHT,WIDTH,LENGTH,TOTAL_AVAILABILITY,EAN,UPC,APN
B226WLR(UM.EB6SA.001),Acer,UM.EB6SA.001-B62,"22""TN-LED,16:10,1680x1050,5ms,1000:1,1xVGA,1xDVI,1xDisplayPort,Tilt,Swivel,Pivot,Height Adj,Speaker,VESA(100x100),3Yrs Warranty","22""TN-LED,16:10,1680x1050,5ms,1000:1,1xVGA,1xDVI,1xDisplayPort,Tilt,Swivel,Pivot,Height Adj,Speaker,VESA(100x100),3Yrs Warranty",,LCD Monitor,,,190.00,217.27,,,209.00,239.00,,,NO,5,5,0,0,EOR,7.400,42,19,55,10,4712196695354,,
View 00_README.md

Come estrarre tutti i punti di un CSV contenuti in un poligono

Questo esempio "ciao mondo" è basato su mapshaper, uno strumento per modificare, file GeoJSON, Shapefile e CSV.

I dati di esempio sono:

  • l'elenco degli elementi di geonames per l'Italia, in formato CSV;
  • le regioni italiane in formato GeoJSON, ricavate dalla trasformazione dei dati dal sito ISTAT.

Estrarre tutti i punti contenuti in Sicilia

View source.json
[
{
"yearmonth": "2017-07",
"count": 10
},
{
"yearmonth": "2017-08",
"count": 9
},
{
You can’t perform that action at this time.