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
-- Port of http://www.ariel.com.au/a/python-point-int-poly.html in lua | |
-- # Determine if a point is inside a given polygon or not | |
-- # Polygon is a list of (x,y) pairs. This function | |
-- # returns True or False. The algorithm is called | |
-- # the "Ray Casting Method". | |
function point_inside_poly(x,y,poly) | |
-- poly is like { {x1,y1},{x2,y2} .. {xn,yn}} | |
-- x,y is the point | |
local inside = false |
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
import subprocess | |
import warnings | |
from typing import List, Optional | |
import google.auth | |
import google.auth.iam | |
import google.oauth2.credentials | |
import structlog | |
from google.auth.credentials import Credentials | |
from google.auth.transport import requests |