This file contains hidden or 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
#!/usr/bin/env php | |
<?php | |
/** | |
* GeoIP Legacy Download & Updated from https://www.miyuru.lk/geoiplegacy | |
* Change $path or put on /usr/share/GeoIP | |
* This script will replace GeoIP.dat, GeoIPCity.dat & GeoIPASNum.dat | |
* NGINX CONFIG: | |
http { | |
.... // etc | |
geoip_country /usr/share/GeoIP/GeoIP.dat; |
This file contains hidden or 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 | |
namespace ArrayIterator\Currency\Daily; | |
class Eu | |
{ | |
const API_URI = 'http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml'; | |
/** | |
* @var string | |
*/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
namespace ArrayIterator\Email; | |
/** | |
* Class ArrayEmailVerifier | |
* @package ArrayIterator\Email | |
*/ | |
class ArrayEmailVerifier | |
{ | |
protected $debugCLI = false; |
This file contains hidden or 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
/** | |
* @see https://github.com/gregallensworth/Leaflet/blob/master/LatLng_Bearings.js | |
*/ | |
L.LatLng.prototype.bearingTo = function(LatLng) { | |
let d2r = Math.PI / 180; | |
let r2d = 180 / Math.PI; | |
let lat1 = this.lat * d2r; | |
let lat2 = LatLng.lat * d2r; | |
let dLon = (LatLng.lng-this.lng) * d2r; | |
let y = Math.sin(dLon) * Math.cos(lat2); |
This file contains hidden or 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 | |
declare(strict_types=1); | |
namespace ArrayIterator; | |
/** | |
* Class PolygonFixer | |
* @package ArrayIterator | |
* Like a Geo Jeon right-hand-rule Fixer based on {@link https://mapster.me/right-hand-rule-geojson-fixer/} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
{ | |
"Australia/Adelaide": { | |
"country_name": "Australia", | |
"country_codes": "AU", | |
"latitude": -34.91667, | |
"longitude": 138.58333, | |
"zone_name": "Australia/Adelaide", | |
"abbreviation": "CAST", | |
"offset": 34200, |