Skip to content

Instantly share code, notes, and snippets.

View bdamm's full-sized avatar
🎯
Focusing

Benjamin bdamm

🎯
Focusing
View GitHub Profile
// ==UserScript==
// @name Place Tesla Firebot
// @namespace http://tampermonkey.net/
// @version 4.0
// @description Place Tesla Firebot
// @author r/teslamotors
// @match https://hot-potato.reddit.com/embed*
// @updateURL https://gist.github.com/xsorifc28/e6529558e4b41a9712bac70220b3c2de/raw/placetesla.user.js
// @downloadURL https://gist.github.com/xsorifc28/e6529558e4b41a9712bac70220b3c2de/raw/placetesla.user.js
// @grant GM_xmlhttpRequest
@cdipaolo
cdipaolo / HaversinFormula.go
Created April 15, 2015 01:31
Golang functions to calculate the distance in meters between long,lat points on Earth.
// haversin(θ) function
func hsin(theta float64) float64 {
return math.Pow(math.Sin(theta/2), 2)
}
// Distance function returns the distance (in meters) between two points of
// a given longitude and latitude relatively accurately (using a spherical
// approximation of the Earth) through the Haversin Distance Formula for
// great arc distance on a sphere with accuracy for small distances
//
@hgomez
hgomez / owasp-dc.md
Last active August 29, 2015 13:59
OWASP Dependency Check