Skip to content

Instantly share code, notes, and snippets.


anjelo del carmen anjelo

View GitHub Profile
View my linux vm notes.txt
python3 -m rtv --theme molokai
get weather:
curl -4
get matrix:
get fake identity:
ascii fancifiers:
anjelo / .vimrc
Created Apr 6, 2017
my .vimrc file
View .vimrc
set nocompatible
set encoding=utf-8
set number "show line numbers
set autoindent
set showmatch
set hlsearch
set incsearch
set backspace=2 "make backspace delete characters
set clipboard=unnamed "use system clpbarod
set virtualedit=onemore "cursor goes beyond last character
anjelo / DistanceBetweenPlaces.cs
Created Jun 8, 2016
Get distance between 2 coordinates
View DistanceBetweenPlaces.cs
// cos(d) = sin(φА)·sin(φB) + cos(φА)·cos(φB)·cos(λА − λB),
// where φА, φB are latitudes and λА, λB are longitudes
// Distance = d * R
//taken from
public static double DistanceBetweenPlaces(double lon1, double lat1, double lon2, double lat2)
double R = 6371; // km
double sLat1 = Math.Sin(Radians(lat1));
double sLat2 = Math.Sin(Radians(lat2));
You can’t perform that action at this time.