This file contains 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
var dir = @"C:\Projects\EntityFramework"; | |
var buffer2 = new char[1]; | |
var buffer1 = new byte[3]; | |
var bom = new byte[] { 0xEF, 0xBB, 0xBF }; | |
foreach (var file in Directory.EnumerateFiles(dir, "*", SearchOption.AllDirectories)) | |
{ | |
if (file.Contains(@".git\") | |
|| file.Contains(@".vs\")) | |
continue; |
This file contains 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
namespace RemoveInternalDocComments | |
{ | |
using System; | |
using System.IO; | |
using System.Linq; | |
using Roslyn.Compilers.CSharp; | |
class Program | |
{ | |
static void Main() |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Console] | |
"ColorTable00"=dword:00000000 | |
"ColorTable01"=dword:00aa0000 | |
"ColorTable02"=dword:0000aa00 | |
"ColorTable03"=dword:00aaaa00 | |
"ColorTable04"=dword:000000aa | |
"ColorTable05"=dword:00aa00aa | |
"ColorTable06"=dword:000055aa |
This file contains 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
MetadataWorkspace LoadEdmx(string path) | |
{ | |
var runtime = XElement.Load(path).Elements().First(e => e.Name.LocalName == "Runtime"); | |
EdmItemCollection edmCollection; | |
var csdl = runtime.Elements().First(e => e.Name.LocalName == "ConceptualModels") | |
.Elements().First(e => e.Name.LocalName == "Schema"); | |
using (var reader = csdl.CreateReader()) | |
{ | |
edmCollection = new EdmItemCollection(new[] { reader }); |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\MediaPlayer\Preferences] | |
"XV11"=- | |
"YV11"=- | |
"WidthV11"=- | |
"HeightV11"=- | |
[HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Office Explorer] | |
"Frame"=- |
This file contains 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 Merge-Tokens($template, $tokens) | |
{ | |
return [regex]::Replace( | |
$template, | |
'\$(?<tokenName>\w+)\$', | |
{ | |
param($match) | |
$tokenName = $match.Groups['tokenName'].Value |
This file contains 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
[user] | |
name = Brice Lambson | |
email = brice@bricelam.net | |
[alias] | |
logg = log --graph -35 | |
[commit] | |
gpgsign = true | |
[core] | |
editor = notepad | |
pager = less -E |
This file contains 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
[WinMerge] | |
Backup/EnableFile=0 | |
DefaultSyntaxColors/Bold07=0 | |
Font/FaceName=Consolas | |
Font/OutPrecision=3 | |
Font/Specified=1 | |
Merge7z/ProbeSignature=1 | |
Settings/AllowMixedEOL=1 | |
Settings/AutomaticRescan=1 | |
Settings/BreakOnWords=0 |
This file contains 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
[Notepad2] | |
[Settings] | |
TabWidth=4 | |
MarkLongLines=1 | |
LongLinesLimit=120 | |
ShowLineNumbers=0 | |
FileWatchingMode=2 | |
ResetFileWatching=0 | |
ShowToolbar=0 |
This file contains 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.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class ParallelEx | |
{ | |
public static Task ForEachAsync<TSource>( | |
IEnumerable<TSource> source, |
OlderNewer