Skip to content

Instantly share code, notes, and snippets.

View dr-robin's full-sized avatar

Robin dr-robin

  • Edinburgh, UK
View GitHub Profile
@dr-robin
dr-robin / distances.py
Created July 12, 2022 16:34 — forked from yevrah/distances.py
Python using free map tools to calculate distance as the crows fly
import requests
import math
from BeautifulSoup import BeautifulSoup
def distance_on_unit_sphere(lat1, long1, lat2, long2):
"src: http://www.johndcook.com/python_longitude_latitude.html"
degrees_to_radians = math.pi/180.0
phi1 = (90.0 - lat1)*degrees_to_radians
phi2 = (90.0 - lat2)*degrees_to_radians
@dr-robin
dr-robin / AdbCommands
Created January 4, 2022 18:57 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help