Revisions
-
daephx revised this gist
Aug 15, 2021 . No changes.There are no files selected for viewing
-
daephx revised this gist
Jul 11, 2021 . No changes.There are no files selected for viewing
-
daephx revised this gist
Jul 11, 2021 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ <# .SYNOPSIS Prompt user for [y/n] confirmation. .NOTES * Consider: If a cmdlet supports the -confirm parameter, it can be forced to prompt before any action. I just like version #1 because it's concise. #> # Version #1 @@ -21,6 +21,6 @@ $Choices = [System.Management.Automation.Host.Choicedescription[]]($Yes, $No) $Answer = $Host.Ui.Promptforchoice($Caption, $Message, $Choices, 0) Switch ($Answer) { 0 { "You Entered 0"; Break } 1 { "You Entered 1"; Break } } -
daephx revised this gist
Aug 24, 2020 . No changes.There are no files selected for viewing
-
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray $Loop = 10000 # Static Array $Measure_Array = Measure-Command { $array = @() 1..$Loop | ForEach-Object { $array += "$_" } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ $Measure_Array = Measure-Command { 1..$Loop | ForEach-Object { $array += "$_" } } # Generic List $Measure_List = Measure-Command { $list = [System.Collections.Generic.List[string]]::new() 1..$Loop | ForEach-Object { $null = $list.Add("$_") } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ $Measure_Array = Measure-Command { 1..$Loop | ForEach-Object { $array += "$_" } } # $Measure_List = Measure-Command { $list = [System.Collections.Generic.List[string]]::new() 1..$Loop | ForEach-Object { $null = $list.Add("$_") } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,6 +24,7 @@ $Measure_Array = Measure-Command { 1..$Loop | ForEach-Object { $array += "$_" } } $Measure_List = Measure-Command { $list = [System.Collections.Generic.List[string]]::new() 1..$Loop | ForEach-Object { $null = $list.Add("$_") } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray $Loop = 10000 # Static Array Size $Measure_Array = Measure-Command { $array = @() 1..$Loop | ForEach-Object { $array += "$_" } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray $Loop = 10000 # Static Array $Measure_Array = Measure-Command { $array = @() 1..$Loop | ForEach-Object { $array += "$_" } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray $Loop = 10000 # Fixed Array $Measure_Array = Measure-Command { $array = @() 1..$Loop | ForEach-Object { $array += "$_" } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray $Loop = 10000 # $Measure_Array = Measure-Command { $array = @() 1..$Loop | ForEach-Object { $array += "$_" } -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $Measure_List = Measure-Command { } Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())`n" Write-Host "'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" Write-Host "'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" Write-Host "'List.Add()'`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,8 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" Write-Host "`n'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" Write-Host "'List.Add()'`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" Write-Host "`nArray +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" Write-Host "'List.Add()'`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" Write-Host "`n'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" Write-Host "'List.Add()'`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" Write-Host "`nArray +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" Write-Host "'List.Add()'`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,6 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" Write-Host "`n'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -31,7 +31,7 @@ $Measure_List = Measure-Command { Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" "" Write-Host "`n'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" Write-Host "'List.Add()'`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,7 +28,7 @@ $Measure_List = Measure-Command { 1..$Loop | ForEach-Object { $null = $list.Add("$_") } } Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" "" Write-Host "'Array +='`t: " -NoNewline -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -29,7 +29,7 @@ $Measure_List = Measure-Command { } "" Write-Host "`nPS $($PSVersionTable.PSEdition) $($PSVersionTable.PSVersion.ToString())" "" Write-Host "'Array +='`t: " -NoNewline Write-Host "Milliseconds: $($Measure_Array.TotalMilliseconds)" -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ PowerShell is then executing the old one, and I’m talking capital punishment here. The old array is no more and you are left with its blood on your hands. .LINK Thanks: https://theposhwolf.com/howtos/PS-Plus-Equals-Dangers/ #> # Breifly introduce the current running script. -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ PowerShell is then executing the old one, and I’m talking capital punishment here. The old array is no more and you are left with its blood on your hands. .LINK Tanks: https://theposhwolf.com/howtos/PS-Plus-Equals-Dangers/ #> # Breifly introduce the current running script. -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,11 @@ https://theposhwolf.com/howtos/PS-Plus-Equals-Dangers/ #> # Breifly introduce the current running script. Write-Host "`n" ($MyInvocation.ScriptName) # Get-Help wont work if script starts with function... Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray $Loop = 10000 $Measure_Array = Measure-Command { -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -14,13 +14,13 @@ $Loop = 10000 $Measure_Array = Measure-Command { $array = @() 1..$Loop | ForEach-Object { $array += "$_" } } $Measure_List = Measure-Command { $list = [System.Collections.Generic.List[string]]::new() 1..$Loop | ForEach-Object { $null = $list.Add("$_") } } "" -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -52,7 +52,7 @@ function Test-RandomInputObjectBenchmark { # Run the Test-Functions Write-Host "$('-'*80)" -ForegroundColor DarkGray # Seperator Write-Host "Running: Benchmark #1 [Pipeline]" Test-RandomPipelineBenchmark Write-Host "$('-'*80)" -ForegroundColor DarkGray # Seperator Write-Host "Running: Benchmark #1 [InputObject]" -
daephx revised this gist
Aug 24, 2020 . No changes.There are no files selected for viewing
-
daephx revised this gist
Aug 24, 2020 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,9 +9,9 @@ #> # Breifly introduce the current running script. Write-Host "`n" ($MyInvocation.ScriptName) # Get-Help wont work if script starts with function... Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray Function Test-PipelineInput { -
daephx revised this gist
Aug 24, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ # Breifly introduce the current running script. Write-Host "`n" ($MyInvocation.ScriptName) # Get-Help wont work if script starts with function... Write-Host (Get-Help $PSCommandPath).Synopsis -ForegroundColor DarkGray function Test-RandomPipelineBenchmark {
NewerOlder