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 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
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 |
NewerOlder