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 characters
function global:Start-ForAllRepos | |
{ | |
[CmdletBinding()] | |
param ( | |
[Parameter(Position=0)] | |
[string] | |
$Cmd = 'git status', | |
[Parameter(Position=1)] | |
[string[]] |
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 characters
$CSVFolder = 'C:\path\to\directory\with\csvs'; | |
$OutputFile = 'C:\path\to\combined.csv'; | |
$CSV = Get-ChildItem -Path $CSVFolder -Filter *.csv | ForEach-Object { | |
Import-Csv -Path $_ | |
} | |
$CSV | Export-Csv -Path $OutputFile -NoTypeInformation -Force; |
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 characters
public static class AsyncEnumerableExtensions | |
{ | |
public static IAsyncEnumerable<TResult> SelectAsync<T, TResult>(this IEnumerable<T> enumerable, | |
Func<T, Task<TResult>> selector) | |
{ | |
return AsyncEnumerable.CreateEnumerable(() => | |
{ | |
var enumerator = enumerable.GetEnumerator(); | |
var current = default(TResult); |
OlderNewer