Skip to content

Instantly share code, notes, and snippets.

View BicycleMark's full-sized avatar

Mark Wardell BicycleMark

View GitHub Profile
@BicycleMark
BicycleMark / MonkeyFace.svg
Last active July 17, 2020 19:59
How to Transform SVG to a series of Path Statements for Shape(Path.Data)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BicycleMark
BicycleMark / gist:23eb78d7a865d83989c909f964a07aa2
Created July 17, 2020 14:56
An Inkscape SVG I want to define in terms of PATH for XAMARIN Forms 4.7
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
@BicycleMark
BicycleMark / WPF-FrameworkToCore_3_1
Last active July 3, 2020 18:14
A simple csproj for moving WPF Framework Apps to .Net Core 3.1
<Project>
<PropertyGroup>
<BaseIntermediateOutputPath>obj_core</BaseIntermediateOutputPath>
</PropertyGroup>
<Import Sdk="Microsoft.NET.Sdk.WindowsDesktop" Project="Sdk.props" />
<ItemGroup>
<Compile Remove="obj\**" />
<EmbeddedResource Remove="obj\**" />
<None Remove="obj\**" />
<Page Remove="obj\**" />
@BicycleMark
BicycleMark / GeoMath.cs
Created June 18, 2020 03:13
GetPointByDistanceAndHeading(double fmLat, double fmLon, double heading, double distanceKm)
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Text;
namespace MobileIE.Classes
{
public class GeoMath
{
public static readonly double EarthRadius = 6378.1; //#Radius of the Earth km