This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -m rtv --theme molokai | |
get weather: | |
curl -4 http://wttr.in/CityName | |
get matrix: | |
cmatrix | |
get fake identity: | |
rig | |
ascii fancifiers: | |
toilet | |
figlet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Settings - | |
Operating System - | |
Shut down - | |
Print - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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)); |