Author: Sean Gillies Version: 1.0
This document describes a GeoJSON-like protocol for geo-spatial (GIS) vector data.
| import argparse | |
| def my_func(arg1, arg2, arg3=None): | |
| print(arg1, type(arg1)) | |
| print(arg2, type(arg2)) | |
| print(arg3, type(arg3)) | |
| if arg3: | |
| print("The boolean value of arg3 is <True>") |
| pytest --collect-only | |
| =============================================================================================== test session starts =============================================================================================== | |
| platform linux -- Python 3.7.2, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 | |
| rootdir: /home/feanor/Prog/svn/grass, inifile: | |
| collected 1429 items | |
| <Module db/db.columns/testsuite/test_dbcolumns.py> | |
| <UnitTestCase TestDbColumns> | |
| <TestCaseFunction test_dbcols> | |
| <Function test> | |
| <Module db/db.copy/testsuite/test_dbcopy.py> |
| # https://github.com/sjl/friendly-find | |
| $ ffind 'test.*sh\b' | |
| ./raster/r.timestamp/test_suite/test.r.timestamp.sh | |
| ./raster/r.series/test_suite/test.r.series.sh | |
| ./raster/r.to.rast3elev/test.r.to.rast3elev.sh | |
| ./raster/r.in.lidar/testsuite/test_base_resolution.sh | |
| ./raster/r.in.lidar/test/sample_test.sh | |
| ./raster/r.to.rast3/test_suite/test.r.to.rast3.sh | |
| ./raster/r.drain/tests/test.r.drain.sh |
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Just some classes that help benchmark execution speed. | |
| Timer : A context manager | |
| AutoTimer: A self-adjusting timer. It replicates the behavior of the timeit module. | |
| """ |
| import os | |
| import pathlib | |
| import sys | |
| import typing | |
| # The exact values of these paths depend on your QGIS installation | |
| QGIS_ROOT = pathlib.Path("/opt/qgis-git") | |
| QGIS_PATH = QGIS_ROOT / "share/qgis/python" | |
| QGIS_PLUGIN_PATH = QGIS_PATH / "plugins" |
This is important because it is a security risk
Some typical example of the problem:
| from __future__ import print_function | |
| ''' | |
| Basic Multi GPU computation example using TensorFlow library. | |
| Author: Aymeric Damien | |
| Project: https://github.com/aymericdamien/TensorFlow-Examples/ | |
| ''' | |
| ''' | |
| This tutorial requires your machine to have 1 GPU | |
| "/cpu:0": The CPU of your machine. |
| import hashlib | |
| import sys | |
| if len(sys.argv) != 3: | |
| sys.exit("Usage: python3 verify.py hash passphrase") | |
| provided_hash = sys.argv[1] | |
| passphrase = sys.argv[2] | |
| salt = provided_hash.split(":")[1] |
| #!/usr/bin/env python3 | |
| import datetime | |
| import numpy as np | |
| import tensorflow as tf | |
| # Processing Units logs | |
| log_device_placement = True |