Skip to content

Instantly share code, notes, and snippets.

View Gerifield's full-sized avatar

Gergely Radics Gerifield

View GitHub Profile
@Gerifield
Gerifield / .env
Created October 30, 2023 13:37 — forked from regulad/.env
SOCKS5 Proxy using Tailscale Exit Node
TS_AUTHKEY=ts-auth-yattayatta
@Gerifield
Gerifield / goTwitterTest
Created April 3, 2015 16:17
Twitter test client in GO with PIN auth
// TwitterGo
package main
import (
"fmt"
"strconv"
"time"
renurl "net/url"
"github.com/ChimeraCoder/anaconda"
)
@Gerifield
Gerifield / php_haversine_example
Created August 20, 2014 08:32
Haversine distance formula calculator for PHP, with some little hacks and a lot of parameters.
/**
* Haversine distance formula.
*
* This calculates the distance between geo coordinates in km<br>
* Algorithm: http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL<br>
* Full calculation with Haversine formula is slow, so limit the whole distance to a rectangle,
* then calculate the distance.
* <br>
* 1° of lat -> 111km (69 miles)<br>
* 1° of lon -> cos(lat)*111<br>

Keybase proof

I hereby claim:

  • I am gerifield on github.
  • I am gerifield (https://keybase.io/gerifield) on keybase.
  • I have a public key whose fingerprint is 4394 7057 50C4 3F3E B432 86AA E928 00CE 4DA6 BCC3

To claim this, I am signing this object: