Skip to content

Instantly share code, notes, and snippets.

python3 -m rtv --theme molokai
get weather:
curl -4 http://wttr.in/CityName
get matrix:
cmatrix
get fake identity:
rig
ascii fancifiers:
toilet
figlet
@anjelo
anjelo / .vimrc
Created April 6, 2017 21:41
my .vimrc file
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
Settings -
Operating System -
Shut down -
Print -
@anjelo
anjelo / DistanceBetweenPlaces.cs
Created June 8, 2016 21:51
Get distance between 2 coordinates
// cos(d) = sin(φА)·sin(φB) + cos(φА)·cos(φB)·cos(λА − λB),
// where φА, φB are latitudes and λА, λB are longitudes
// Distance = d * R
//taken from http://stackoverflow.com/a/6545031
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));