Skip to content

Instantly share code, notes, and snippets.

View bchavez's full-sized avatar

Brian Chavez bchavez

View GitHub Profile
@bchavez
bchavez / MapMaker.csproj
Last active February 11, 2022 17:56
Using Bogus.Locations to generate random points in a 3 mile radius
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bogus" Version="28.4.4" />
<PackageReference Include="Bogus.Locations" Version="28.4.4.8" />

Keybase proof

I hereby claim:

  • I am bchavez on github.
  • I am bchavez (https://keybase.io/bchavez) on keybase.
  • I have a public key ASAF09qBFZ0tVaQuwfEXdeilsUx0cGtNhv-rPz260KR_kAo

To claim this, I am signing this object:

@bchavez
bchavez / LINQPad_csproj
Created August 29, 2017 01:32
Scans corefx repo for all csproj files and extracts pertinent information for creating a master .SLN file.
var csprojs = Directory.GetFiles(".", @"*.csproj", SearchOption.AllDirectories)
.Where(projFile => !projFile.Contains(@"\ref\"))
.Select(projFile => new { name = Path.GetFileNameWithoutExtension(projFile), file = projFile, guid = GetProjectGuid(projFile) })
.Where( p => p.guid.IsNotNullOrWhiteSpace() );
foreach (var project in csprojs)
{
$@"Project(""{{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}}"") = ""{project.name}"", ""{project.file}"", ""{project.guid}""".Dump();
}