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
# -*- coding: utf-8 -*- | |
""" | |
*************************************************************************** | |
* * | |
* This program is free software; you can redistribute it and/or modify * | |
* it under the terms of the GNU General Public License as published by * | |
* the Free Software Foundation; either version 2 of the License, or * | |
* (at your option) any later version. * | |
* * |
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
from qgis.core import * | |
from qgis.gui import * | |
import wikipedia | |
@qgsfunction(args='auto', group='wikipedia') | |
def wiki_set_lang(value, feature, parent): | |
""" | |
Sets global wikipedia_language Variable | |
<h2>Example usage:</h2> | |
<ul> |
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
# pip install boto3 | |
import boto3 | |
import botocore | |
s3client = boto3.client('s3', region_name='eu-central-1') #specify aws region | |
#exclude credential signing, otherwise, without providind AWS credential you will get a "NoCredentialsError" | |
s3client.meta.events.register('choose-signer.s3.*', botocore.handlers.disable_signing) | |
objects = s3client.list_objects(Bucket='vito.landcover.global') | |
for item in objects["Contents"]: | |
print (item["key"]) |
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
SELECT | |
p1.cat, | |
p1.id_dato, | |
p1.numero_str, | |
p2.distanza_dal_precedente, | |
coalesce(p2.cat_precedente, 0) as cat_precedente, | |
coalesce(p2.accumulo_distanze, 0) | |
FROM | |
edit_percorso_point as p1 | |
INNER JOIN LATERAL ( |
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
### Keybase proof | |
I hereby claim: | |
* I am enricofer on github. | |
* I am enricofer (https://keybase.io/enricofer) on keybase. | |
* I have a public key ASD1izS5lZxC7iilKpgUGgtCUCED-qRP6ecZcXloMVjpCgo | |
To claim this, I am signing this object: |