Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.1">
<head>
<title>RSS Bot</title>
<dateCreated>Saturday, 5 June 2021 at 2:20:04 AM IST</dateCreated>
</head>
<body>
<outline title="1stwebdesigner" text="1stwebdesigner" type="rss" xmlUrl="https://1stwebdesigner.com/feed/" />
<outline title="24 Accessibility" text="24 Accessibility" type="rss" xmlUrl="https://www.24a11y.com/feed/" />
<outline title="24 ways" text="24 ways" type="rss" xmlUrl="https://feeds.feedburner.com/24ways" />

Keybase proof

I hereby claim:

  • I am mayrestinpeace on github.
  • I am mayrestinpeace (https://keybase.io/mayrestinpeace) on keybase.
  • I have a public key ASA6hmIrQAKk_bo8V7p7fRR25F1RoEHBhYeaXwKsG7C2VAo

To claim this, I am signing this object:

@mayrestinpeace
mayrestinpeace / locationIndexOnEdgeOrPath.swift
Created August 15, 2019 01:44
Check if a point lies on a polyline in swift. Return -1 if it does not or i if it lies between polyline[i] and polyline[i+1]
import UIKit
struct LatLng {
var latitude: Double
var longitude: Double
}
let EARTH_RADIUS = 6371009.0
func hav(_ x: Double) -> Double {