🚴♂️
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
// Open the file in an editor | |
if (createdFile) { | |
vscode.workspace.openTextDocument(createdFile).then((document) => { | |
vscode.window.showTextDocument(document); | |
}); | |
} |
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
# Use .NET 8 SDK | |
# Ensures .NET 8 SDK is installed/used | |
- task: UseDotNet@2 | |
inputs: | |
version: 8.0.x |
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 vs { | |
$p = Get-Location | |
$sln = gci *.sln,*.csproj -n -recurse | select -f 1 | |
Write-Output "Opening $p\$sln" | |
Start-Process -FilePath "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe" -ArgumentList "$p\$sln" | |
} |
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"final_space": true, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ |
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
<!-- I need the parameter of the foreground to be the current value which will serve as a default if not converted --> | |
<TextBlock Foreground="{Binding Path=Conclusion, | |
Converter={StaticResource ConclusionColorConverter}, | |
ConverterParameter={Binding RelativeSource={RelativeSource Mode=Self}}}" Text="{Binding Conclusion}" /> |
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
namespace TempStick; | |
public class BooleanConverter : JsonConverter<bool> | |
{ | |
public override bool Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) | |
{ | |
if (reader.TokenType == JsonTokenType.String) | |
{ | |
return string.Equals(reader.GetString(), "1", StringComparison.OrdinalIgnoreCase); | |
} |
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
["number","title","state","labels"], | |
(.[] | [ | |
.number, | |
.title, | |
.state, | |
(.labels | if length == 0 then "no-label" elif length > 1 then map(.name) | join(",") else .[0].name end) | |
]) | @csv |
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
<HierarchicalDataTemplate x:Key="TreeViewRunNodeDataTemplate" ItemsSource="{Binding Jobs}"> | |
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> | |
<TextBlock VerticalAlignment="Center" FontFamily="{StaticResource CodiconFont}" | |
Foreground="{Binding Path=Conclusion, Converter={StaticResource ConclusionColorConverter}}" | |
Text="{Binding Path=Conclusion, Converter={StaticResource ConclusionIconConverter}}"/> | |
<emoji:TextBlock Text="{Binding DisplayName}" VerticalAlignment="Bottom" Tag="{Binding Url}"/> | |
</StackPanel> | |
</HierarchicalDataTemplate> |
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 vs { | |
$p = Get-Location | |
$sln = gci *.sln,*.csproj -n -recurse | select -f 1 | |
Write-Output "Opening $p\$sln" | |
Start-Process -FilePath "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\devenv.exe" -ArgumentList "$p\$sln" | |
} |
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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"type": "object", | |
"properties": { | |
"Street": { | |
"type": "string" | |
}, | |
"City": { | |
"type": "string" | |
}, |