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
| Function Get-URLData { | |
| <# | |
| .SYNOPSIS | |
| This function parses a URL and returns an object with all the detailed information of it | |
| .DESCRIPTION | |
| Long description | |
| .EXAMPLE | |
| Get-UrlData -Url 'https://Google.com/Search' |
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
| <# | |
| .Synopsis | |
| Return a name based on Lorem Ipsum. | |
| .DESCRIPTION | |
| Calls public Loren Ipsum API and returns name and account name if requested. | |
| .EXAMPLE | |
| Get-LoremName | |
| FirstName LastName | |
| --------- -------- | |
| Plane Gloriosam |
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
| p{ | |
| h2 "Example with HTML table" | |
| table{ | |
| caption "This is a table generated with PSHTML" | |
| thead { | |
| tr{ | |
| th "number1" | |
| th "number2" | |
| th "number3" |
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
| Function Write-Header { | |
| $Header = | |
| Head{ | |
| '{0}' | |
| '{1}' | |
| }#end of header |
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
| $Path = "PahtToFile.Tests.Ps1" | |
| Function Get-PesterITBlock { | |
| [CmdletBinding()] | |
| Param( | |
| $Path, | |
| $InputObject | |
| ) | |
| if($Path){ | |
| $P = Get-Item -path $Path |
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
| Function New-WebServiceProxyProxy { | |
| [CmdletBinding()] | |
| Param( | |
| $proxyURL, | |
| [Parameter(Mandatory=$true)] | |
| $Uri | |
| ) | |
| $proxyObject = [System.Net.WebProxy]::new($proxyURL) | |
| $TempFile = [System.IO.Path]::GetTempFileName() + "_wsdl.xml" |
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
| <header> | |
| <h1>This is an example generated using PSHTML Templates</h1> | |
| </header> | |
| <body> | |
| <h2>This comes from a template file</h2> | |
| </body> | |
| <footer> | |
| <div> | |
| <h4>This is the footer from a template</h4> | |
| </div> |
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
| #body.ps1 - Contains -> | |
| h2 "This comes from a template file" | |
| # footer.ps1 Contains -> | |
| div { | |
| h4 "This is the footer from a template" | |
| p{ | |
| "Copyright from template" | |
| } | |
| } |
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
| html{ | |
| Header{ | |
| h1 "This is an example generated using PSHTML Templates" | |
| } | |
| Body{ | |
| include -name Body | |
| } | |
| Footer{ |
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
| import-module PSHTML | |
| html { | |
| head { | |
| title "Example 2" | |
| } | |
| body { |