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
There are two files here: a python file to call CFN APIs and a TypeScript file to define a construct | |
======================================== | |
import { CustomResource, Duration } from 'aws-cdk-lib'; | |
import { PolicyStatement } from 'aws-cdk-lib/aws-iam'; | |
import { Code, Runtime, SingletonFunction } from 'aws-cdk-lib/aws-lambda'; | |
import { Construct } from 'constructs'; |
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
$veh = @('subway', 'tram', 'boat', 'train') | |
function select-arrow | |
{ | |
param ($v, $xml, $dir, $id) | |
$north = $xml.clone() | |
$north.svg.path | % { | |
if ($_.id -like 'path3021*' -and -not ($_.id -like $id)) | |
{ | |
$_.ParentNode.RemoveChild($_) |