Skip to content

Instantly share code, notes, and snippets.

View andreharak's full-sized avatar

André H. andreharak

  • Leuven, Belgium
View GitHub Profile
@acamino
acamino / HttpClientApproach.cs
Last active August 16, 2024 12:50
4 Ways to Parse a JSON API with C#
using System;
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
namespace HttpClientApproach
{
internal class Contributor
{
public string Login { get; set; }
@kiichi
kiichi / NetTopologySuite_Distance_Area_Example.cs
Last active November 16, 2023 18:50
C# GIS Polygon and Distance / Area Example using NetTopologySuite
using System;
using NetTopologySuite.Geometries;
using GeoAPI.Geometries;
/*
this looks wrong. SRID is not used?
Edge (West-East) of Central Park: 0.00906435667878181
Margin Distance of Central Park: 0.0983743244869002
Central Park Area: 0.000354214827500022
*/
namespace NetTopologySuiteTest {