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> | |
| <head> | |
| <title>Example 2</title> | |
| </head> | |
| <Body> | |
| <h1> | |
| Example adding loops an other operators | |
| </h1> |
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 "Basic example" | |
| } | |
| body { | |
| 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
| <html> | |
| <head> | |
| <title>Basic example</title> | |
| </head> | |
| <Body> | |
| <div> | |
| <p> | |
| This is simply a paragraph in a 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
| import-module C:\Users\taavast3\OneDrive\Repo\Projects\OpenSource\PSHTML\pshtml.psd1 | |
| $Languages = @("PowerShell","Ruby","CSharp","Python") | |
| $HtmlDocument = html { | |
| head{ | |
| title "woop title" |
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
| { | |
| "WMF3": { | |
| "Win7": { | |
| "x86": "https://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.1-KB2506143-x86.msu", | |
| "x64": "https://download.microsoft.com/download/E/7/6/E76850B8-DA6E-4FF5-8CCE-A24FC513FD16/Windows6.1-KB2506143-x64.msu" | |
| } | |
| }, | |
| "DotNet4": "https://download.microsoft.com/download/1/B/E/1BE39E79-7E39-46A3-96FF-047F95396215/dotNetFx40_Full_setup.exe", | |
| "WMF4": { | |
| "Win7": { |
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-GitHistory { | |
| <# | |
| .DESCRIPTION | |
| One the command has been executed, press 'q' to terminate the reader. | |
| .NOTES | |
| current version: 0.2 | |
| Author: Stephane van Gulick | |
| .LINK |
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
| #This function is not working yet | |
| $obj = Get-Process | select -First 1 | |
| $objMembers = $obj | gm | |
| $Properties = $object | gm | ? {$_.MemberType -eq 'property' -or $_.MemberType -eq 'NoteProperty'} | |
| Foreach($pro in $Properties){ | |
| $gmpro = $pro | gm |
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
| Class FolderDepth{ | |
| [String]$Folder | |
| [int]$level | |
| FolderDepth([String]$Folder,[int]$Level){ | |
| $this.Folder = $Folder | |
| $this.level = $Level | |
| } | |
| } |
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 --> https://github.com/PowerShell/Polaris/blob/master/Polaris.psm1 | |
| # Handles the removal of the module | |
| $ExecutionContext.SessionState.Module.OnRemove = | |
| { | |
| Stop-Polaris -ErrorAction SilentlyContinue | |
| Clear-Polaris | |
| }.GetNewClosure() |
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-BoundParameters { | |
| <# | |
| .EXAMPLE | |
| Inside a function, call it like this: | |
| Get-BoundParameters -Type Common | |
| .EXAMPLE | |
| Inside a function, call it like this: | |
| Get-BoundParameters -Type UserDefined | |
| #> | |
| [CmdletBinding()] |