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 Invoke-DartFixApply() | |
| { | |
| dart fix --apply | |
| } | |
| Set-Alias -Name dfapply -Value Invoke-DartFixApply | |
| function Invoke-DartAnalyze() | |
| { | |
| dart analyze | |
| } |
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
| # RUN | |
| function Invoke-FlutterRun() | |
| { | |
| flutter run | |
| } | |
| Set-Alias -Name frun -Value Invoke-FlutterRun | |
| # BUILD | |
| function Invoke-FlutterBuild() | |
| { |
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
| # dotNetDave's (David McCarter) Editor Config - dotNetTips.com | |
| # Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5 | |
| # Updated February 14, 2024 | |
| # dotNetDave's NEW coding standards book is available at: https://bit.ly/CodingStandards8 | |
| # Rockin' the Code World with dotNetDave (weekly live show): https://bit.ly/RockinCodeWorldShows | |
| root = true | |
| # All Files | |
| [*] |
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
| // Stephen Toub Deep Dive on Async/Await | |
| // https://www.youtube.com/watch?v=R-z2Hv-7nxk | |
| using System.Collections.Concurrent; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.ExceptionServices; | |
| // ------------------------------------------------------------ | |
| AsyncLocal<int> myValue = new(); | |
| List<MyTask> tasks = new(); | |
| for (int i = 0; i < 100; i++) |
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
| Set-Alias c Clear-Host | |
| Set-Alias l Get-ChildItem | |
| Set-Alias p pwd | |
| Set-Alias s 'C:\Program Files\Sublime Text\sublime_text.exe' | |
| function Clear-List | |
| { | |
| Clear-Host | |
| Get-ChildItem | |
| } |
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
| #region BUILD | |
| function Invoke-DotnetBuild([string]$name) | |
| { | |
| if([String]::IsNullOrWhiteSpace($name)) | |
| { | |
| dotnet build | |
| return | |
| } | |
| dotnet build $name |
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
| ############################# | |
| ##### Container ##### | |
| ############################# | |
| ### Info ### | |
| function Get-DockerContainers { | |
| docker ps | |
| } | |
| Set-Alias dps Get-DockerContainers |
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
| Set-Alias g git | |
| function Invoke-GitStatus | |
| { | |
| git status --short --branch | |
| } | |
| Set-Alias gs Invoke-GitStatus | |
| function Invoke-GitFetchOrigin | |
| { |
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
| # Add VS Devenv | |
| using namespace System.Management.Automation | |
| using namespace System.Management.Automation.Language | |
| #### user interface #### | |
| Import-Module -Name Terminal-Icons | |
| oh-my-posh --init --shell pwsh --config 'C:\code\powershell\ohmyposh.json' | Invoke-Expression | |
| #### auto complete && suggestions ##### | |
| Import-Module z |
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
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "version": 2, | |
| "console_title_template": "{{ .Shell }} in {{ .Folder }}", | |
| "final_space": true, | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ |