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
using System; | |
namespace Sandbox { | |
class Program { | |
static void Main(string[] args) { | |
var someLongNamedVariableName = new Person(); | |
// Notice that the parent object is marked with two underscores "__" | |
// and the child with a single underscore "_". This is because the | |
// double underscore created in the outer anonymous Action lamda |
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 is the old way, use Compress-Archive | |
Add-Type -assembly "system.io.compression.filesystem" | |
$source = Get-ChildItem -Path "c:\stuff" -Directory | |
Write-Host "$($source.length) files found" | |
Foreach ($s in $source) { | |
Write-Host "Writing $($s.name).zip..." | |
$destination = Join-path -path "C:\stuff" -ChildPath "$($s.name).zip" | |
If(Test-path $destination) { | |
Remove-item $destination | |
} |
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
# http://EditorConfig.org | |
############################### | |
# Common Settings # | |
############################### | |
# This file is the top-most EditorConfig file | |
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
# |
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
dotnet add package Specflow | |
dotnet add package SpecFlow.MsTest | |
dotnet add package SpecFlow.Tools.MsBuild.Generation | |
dotnet add package FluentAssertions |
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 coverlet to the test project(s) | |
dotnet add package coverlet.msbuild | |
# or for VSTest | |
# dotnet add package coverlet.collector | |
# Add the coverlet global cli tool | |
dotnet tool install --global coverlet.console | |
# coverage gutters vscode extension | |
ext install ryanluker.vscode-coverage-gutters |
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
dotnet tool install xmldocmd -g |
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
root = true; | |
[*] | |
indent_style = space | |
trim_trailing_whitespace = true | |
end_of_line = lf | |
# Code files | |
[*.{cs,csx,vb,vbx}] | |
indent_size = 4 |
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
(New-Object System.DirectoryServices.DirectorySearcher("(&(objectCategory=User)(samAccountName=$($env:userna | |
me)))")).FindOne().GetDirectoryEntry().memberOf |
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 read_solution() { | |
echo "Parsing solution $1" | |
while IFS='' read -r line || [[ -n "$line" ]]; do | |
if [[ $line =~ \"([^\"]*.csproj)\" ]]; then | |
project="${BASH_REMATCH[1]}" | |
read_project "$(echo "$project"|tr '\\' '/')" | |
fi | |
done < "$1" |
OlderNewer