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
| /* | |
| * Following code for test an method will be inlined by JIT or not | |
| * Tested on Framework 4.5, Win8 x64 | |
| * | |
| * http://blogs.msdn.com/b/ericgu/archive/2004/01/29/64717.aspx | |
| * http://blogs.microsoft.co.il/blogs/sasha/archive/2012/01/20/aggressive-inlining-in-the-clr-4-5-jit.aspx | |
| */ | |
| using System; | |
| using System.Diagnostics; |
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 static class CommitLogExtension | |
| { | |
| public static IEnumerable<Commit> PathFilter(this IEnumerable<Commit> log, string path) | |
| { | |
| if (string.IsNullOrEmpty(path)) | |
| return log; | |
| return log.Where(s => | |
| { | |
| var pathEntry = s[path]; |
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
| // Encoding bin files generator for Encoding for Silverlight project | |
| // https://encoding4silverlight.codeplex.com/ | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| class Program | |
| { | |
| private const char LEAD_BYTE_CHAR = '\uFFFE'; |
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
| ' ===================================================================== | |
| ' Version: 1.0 | |
| ' Date: 2013-02-22 | |
| ' Description: | |
| ' This script is for auto lock a unlocked BitLocker drive. | |
| ' Put this script in a BitLocker drive and run it to lock this drive. | |
| ' ===================================================================== | |
| On Error Resume Next |
NewerOlder