Skip to content

Instantly share code, notes, and snippets.

View gaston223's full-sized avatar

Gaoussou Coulibaly gaston223

View GitHub Profile
@gaston223
gaston223 / distance-sample.php
Created April 29, 2021 10:09 — forked from LucaRosaldi/distance-sample.php
PHP: Get Distance Between two Geolocated Points (lat/lon)
<?php
/* These are two points in New York City */
$point1 = array('lat' => 40.770623, 'long' => -73.964367);
$point2 = array('lat' => 40.758224, 'long' => -73.917404);
$distance = getDistanceBetweenPoints($point1['lat'], $point1['long'], $point2['lat'], $point2['long']);
foreach ($distance as $unit => $value) {
echo $unit.': '.number_format($value,4).'<br />';
}
@gaston223
gaston223 / hello.c
Last active October 4, 2020 18:25
Mon Hello World en C
int main()
{
printf("Hello World");
return 0;
}