The Patterson cylindrical projection “falls between the popular Miller 1, which excessively exaggerates the size of polar areas, and the Plate Carrée, which compressess the north-south dimension of mid latitudes.”
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
public class JsonContent : HttpContent | |
{ | |
private static readonly JsonSerializer s_defaultDecisionEngineJsonSerialiser = JsonSerializer.Create(new DecisionEngineJsonSerializerSettings()); | |
private readonly Lazy<JsonSerializer> _serialiser; | |
private readonly object _value; | |
public Encoding Encoding { get; } |
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
void Main() | |
{ | |
var storage = Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=en7343;AccountKey=VdJRm1PbyQ8YOrd3gR+CMcS5YQge6H4XMMaNpR2DBhDxV/0A/lQT+SXnNnQbx0xqyLTQVnY5+DwwEYCXWqFm3g==;EndpointSuffix=core.windows.net"); | |
var client = storage.CreateCloudBlobClient(); | |
var container = client.GetContainerReference("test-06"); | |
container.CreateIfNotExists(); | |
CreateData(container); | |
ReadData(container); |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net462</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="1.0.41" /> | |
</ItemGroup> |
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
foreach (var csproj in Directory.GetFiles(@"C:\Git\_InternalTools\Nephele", "*.csproj", SearchOption.AllDirectories)) | |
{ | |
var nuspecFileInfo = new FileInfo(Path.ChangeExtension(csproj, ".nuspec")); | |
if (!nuspecFileInfo.Exists) | |
continue; | |
Console.WriteLine($"Inspecting {nuspecFileInfo.Name}"); | |
var xNuspec = XDocument.Load(nuspecFileInfo.FullName); | |
var xMetaData = xNuspec.XPathSelectElement("package/metadata"); | |
var xDependencies = xMetaData.XPathSelectElement("dependencies"); |
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
<Query Kind="Program"> | |
<Namespace>System.Threading.Tasks</Namespace> | |
</Query> | |
const string folder = @"C:\Git\_InternalTools\Nephele"; | |
const string assemblyPath = @"bin\debug\net46"; | |
void Main() | |
{ | |
foreach (var filename in Directory.GetFiles(folder, "*.nuspec", SearchOption.AllDirectories)) |
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
public class DocumentDb | |
{ | |
private readonly DocumentClient _documentDb; | |
private readonly string _databaseId; | |
public DocumentDb(string endPoint, string authKey, string databaseId) | |
{ | |
_databaseId = databaseId; | |
_documentDb = new DocumentClient(new Uri(endPoint), authKey); | |
} |
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
<Query Kind="Program"> | |
<NuGetReference>NuGet.Core</NuGetReference> | |
<Namespace>NuGet</Namespace> | |
<Namespace>System.Runtime.Versioning</Namespace> | |
</Query> | |
const string folder = @"C:\Git\_InternalTools\Nephele"; | |
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
CAST(CAST(newid() AS binary(10)) + CAST(GETDATE() AS binary(6)) AS uniqueidentifier) |
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
public static string GetBuildDirectory() | |
{ | |
var solution = Environment.GetEnvironmentVariable("NCrunch.OriginalSolutionPath"); | |
if (!string.IsNullOrEmpty(solution)) | |
return Path.GetDirectoryName(solution); | |
var teamCityLocation = Environment.GetEnvironmentVariable("teamcity.build.checkoutDir"); | |
if (!string.IsNullOrEmpty(teamCityLocation)) | |
{ | |
return teamCityLocation; |
NewerOlder