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
/** | |
* http://stjarnhimlen.se/comp/tutorial.html | |
* http://www.planetcalc.ru/320/ | |
*/ | |
// day | |
var year = 2016; | |
var month = 4; | |
var day = 18; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- | |
DEMO: http://lexx918.ru/files/js.loader.html | |
--> | |
<meta charset="utf-8"> | |
<title>loader</title> |
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
<?php | |
/** | |
* author: domino, 28 апр 2008 | |
* http://phpclub.ru/talk/members/domino.521/ | |
* http://phpclub.ru/talk/threads/%D1%80%D0%B0%D1%81%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D0%B5-%D0%BC%D0%B5%D0%B6%D0%B4%D1%83-%D0%B4%D0%B2%D1%83%D0%BC%D1%8F-%D1%82%D0%BE%D1%87%D0%BA%D0%B0%D0%BC%D0%B8-%D0%B7%D0%B5%D0%BC%D0%BB%D0%B8-%D0%B2-gps-%D0%BA%D0%BE%D0%BE%D1%80%D0%B4%D0%B8%D0%BD%D0%B0%D1%82%D0%B0%D1%85-%D1%81%D1%82%D0%B0%D0%BD%D0%B4%D0%B0%D1%80%D1%82%D0%B0-wgs84.54170/ | |
* | |
* $gps_1['lat'] - latitude (широта) | |
* $gps_1['lon'] - longitude (долгота) | |
* $gps_1['point_elevation'] (высота точки) // == 0 if this is sea. but must be defined! | |
*/ |
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
<?php | |
// geo-hash | |
function ghEncode($lt, $lg) | |
{ | |
$ltTop = 90; | |
$ltBottom = -90; | |
$lgLeft = -180; | |
$lgRight = 180; | |
$chars = "0123456789bcdefghjkmnpqrstuvwxyz"; |
NewerOlder