This file contains hidden or 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
{ | |
"apiVersion":"argoproj.io/v1alpha1", | |
"kind":"Workflow", | |
"metadata": { | |
"namespace": "sdparray1", | |
"name": "product-controller-1111" | |
}, | |
"spec":{ | |
"entrypoint":"product-controller", | |
"serviceAccountName":"workflow", |
This file contains hidden or 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
#!/bin/bash | |
########################################################## | |
# Updated 3 July 2015 to use dnf and tweaks for Fedora 22 | |
########################################################## | |
# Change below to whichever host is running apt cacher | |
# setup apt-cacher - do this after lxc docker as ssl sources are not configured for cacher by me | |
dnf install -y apt-cacher-ng | |
systemctl start apt-cacher-ng.service |
This file contains hidden or 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
def run: | |
impact = self.calculate_impact(...) # IF base run | |
report = self.generate_report(impact) # report mixin work |
This file contains hidden or 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.utils import iface | |
from osgeo import gdal | |
from qgis.core import QgsFeatureRequest | |
# Get the layer | |
layers = iface.legendInterface().layers() | |
vector_layer = layers[0] | |
# Get the current extents |
This file contains hidden or 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.utils import iface | |
from osgeo import gdal | |
def world2Pixel(geoMatrix, x, y): | |
""" | |
from: http://pcjericks.github.io/py-gdalogr-cookbook/raster_layers.html | |
Uses a gdal geomatrix (gdal.GetGeoTransform()) to calculate | |
the pixel location of a geospatial coordinate | |
""" | |
ulX = geoMatrix[0] |