Skip to content

Instantly share code, notes, and snippets.

View ArrayIterator's full-sized avatar

ArrayIterator ArrayIterator

View GitHub Profile
@ArrayIterator
ArrayIterator / east-java.json
Created March 24, 2020 02:58
GEOJSON (East Java)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ArrayIterator
ArrayIterator / ArrayEmailVerifier.php
Created February 26, 2020 07:26
Verify Email Existences Via Port 25
<?php
namespace ArrayIterator\Email;
/**
* Class ArrayEmailVerifier
* @package ArrayIterator\Email
*/
class ArrayEmailVerifier
{
protected $debugCLI = false;
@ArrayIterator
ArrayIterator / leaflet.LatLng.bearingTo.js
Created February 19, 2020 17:20
Add Bearing (Rotation Based) to Leaflet LatLng
/**
* @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);
@ArrayIterator
ArrayIterator / PolygonFixer.php
Created February 19, 2020 08:02
Fix Right Hand Rule Geo JSON clockwise
<?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.
@ArrayIterator
ArrayIterator / REFERENCE.MD
Created February 12, 2020 17:39
ISO - 8601 + 4217 + 3166
@ArrayIterator
ArrayIterator / ISO8601.json
Created February 12, 2020 17:26
FULL 2020/02 - ISO 8601 Date and time format
{
"Australia/Adelaide": {
"country_name": "Australia",
"country_codes": "AU",
"latitude": -34.91667,
"longitude": 138.58333,
"zone_name": "Australia/Adelaide",
"abbreviation": "CAST",
"offset": 34200,
@ArrayIterator
ArrayIterator / ISO4217.json
Last active March 17, 2025 22:08
FULL 2020/02 - ISO 4217 Currency codes
{
"BDT": {
"code": "BDT",
"name": "Bangladeshi Taka",
"symbol": "\u09f3"
},
"EUR": {
"code": "EUR",
"name": "Euro",
"symbol": "\u20ac"
@ArrayIterator
ArrayIterator / ISO3166.json
Last active March 17, 2025 22:08
FULL 2020/02 - ISO 3166 Country Codes
{
"BD": {
"name": "Bangladesh",
"continent": {
"code": "AS",
"name": "Asia"
},
"code": {
"alpha2": "BD",
"alpha3": "BGD"

UPDATE FLEET LOCATION HISTORY

Processing Call ke GPS API & Fleet Location Upate

FAIL

Apabila gagal maka update table fleet column last_gps_update_data dengan :