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
Compare-Object ` | |
-ReferenceObject (git ls-files | Resolve-Path -Relative | Sort-Object) ` | |
-DifferenceObject (Get-ChildItem -Recurse -File | Resolve-Path -Relative | Sort-Object) ` | |
-CaseSensitive ` | |
-SyncWindow 0 |
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
# first install Git 2.16+ | |
# https://git-scm.com/download/win | |
git --version | |
# (optional) reset machine settings because per-machine config makes no sense in team projects | |
# the default (when not set) for core.autocrlf is false (no eol conversions) | |
git config --unset core.autocrlf | |
git config --unset core.safecrlf | |
git config --unset core.eol |
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
public class ES6ModulesHttpModule : IHttpModule | |
{ | |
public void Dispose() | |
{ | |
} | |
public void Init(HttpApplication context) | |
{ | |
context.BeginRequest += ContextOnBeginRequest; | |
} |
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
export class Hero { | |
id: number; | |
name: string; | |
superpower: Power; | |
friends: Hero[]; | |
} | |
export class Power { | |
name: string; | |
} |
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
//Git Mergetool and difftool with Beyond Compare 4 | |
//For Windows | |
//IF running this command in git bash then escape $ with \ | |
git config --global diff.tool bc4 | |
git config --global difftool.bc4.cmd "\"C:/Program Files/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\"" | |
git config --global difftool.prompt false | |
git config --global merge.tool bc4 | |
git config --global mergetool.bc4.cmd "\"C:/Program Files/Beyond Compare 4/BCompare.exe\" \"\$LOCAL\" \"\$REMOTE\" \"\$BASE\" \"\$MERGED\"" | |
git config --global mergetool.bc4.trustExitCode true |
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
git config --global alias.co checkout | |
git config --global alias.br branch | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.last "log -1 HEAD" | |
git config --global alias.ff "merge --ff-only" | |
git config --global alias.root "rev-parse --show-toplevel" | |
git config --global alias.done "branch --format=\"%(if:equals=gone)%(upstream:track,nobracket)%(then)%(refname:short)%(end)\"" | |
git config --global alias.doing "branch --format=\"%(if:notequals=)%(upstream)%(then)%(refname:short)%(end)\"" | |
git config --global alias.todo "branch --format=\"%(if:equals=)%(upstream)%(then)%(refname:short)%(end)\"" |
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; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Optimization; | |
[DebuggerStepThrough] | |
public static class BundleCollectionExtensions | |
{ | |
public static void VerifyStyleBundles(this BundleCollection instance) |
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
public class FileDownloadBlock : IPropagatorBlock<Uri, Stream> | |
{ | |
private readonly IPropagatorBlock<Uri, Stream> impl = new TransformBlock<Uri, Stream>(new Func<Uri, Stream>(Implementation)); | |
private static Stream Implementation(Uri uri) | |
{ | |
throw new NotImplementedException(); | |
} | |
public DataflowMessageStatus OfferMessage( |