.forEach().map().filter().reduce()
- Purpose: basic alternative to the
forloop that bypasses use of array indexes
| #!/bin/bash | |
| # Define the pattern to search for | |
| pattern='client_secret' | |
| # Define the elements to search in | |
| udv_element='UserDefinedVariables' | |
| http_element='HTTPSamplerProxy' | |
| # Loop over all the .jmx files being committed |
This gist is an exploration of how to validate email addresses with regex as close as possible to the specification in RFC 6531.
| #If VBA7 Then | |
| Private Declare PtrSafe Function MessageBoxW Lib "user32" (ByVal hWnd As LongPtr, ByVal lpText As LongPtr, ByVal lpCaption As LongPtr, ByVal uType As Long) As Long | |
| #Else | |
| Private Declare Function MessageBoxW Lib "user32" (ByVal hWnd As Long, ByVal lpText As Long, ByVal lpCaption As Long, ByVal uType As Long) As Long | |
| #End If | |
| #If VBA7 Then | |
| Private Declare PtrSafe Function GetActiveWindow Lib "user32" () As LongPtr | |
| #Else | |
| Private Declare Function MessageBoxW Lib "user32" () As Long |