Skip to content

Instantly share code, notes, and snippets.

View ArrayIterator's full-sized avatar

ArrayIterator ArrayIterator

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ArrayIterator on github.
  • I am arrayiterator (https://keybase.io/arrayiterator) on keybase.
  • I have a public key whose fingerprint is DD3B 2563 387B 80D1 C877 C6E8 F891 8FCC FF99 3188

To claim this, I am signing this object:

@ArrayIterator
ArrayIterator / SchemaParser.php
Last active April 6, 2018 14:01
TL Schema Parser
<?php
declare(strict_types=1);
namespace ArrayIterator\MTProto;
/**
* Class SchemaParser
* @package ArrayIterator\MTProto
* @link https://core.telegram.org/mtproto/TL
*/
var sanityHTMLClass = (str) => {
if (typeof str !== 'string') {
return '';
}
return str
// replace for v?s?printf
.replace(/%[a-fA-F0-9][a-fA-F0-9]/, '')
// Limit to A-Z,a-z,0-9,_,-
.replace(/[^A-Za-z0-9_-]/, '');
}
@ArrayIterator
ArrayIterator / TinyPng.php
Last active June 26, 2020 06:27
TinyPng Optimize Image API
<?php
declare(strict_types=1);
namespace ArrayIterator\App\TinyPng;
use Exception;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Stream;
use GuzzleHttp\RequestOptions;
use InvalidArgumentException;
@ArrayIterator
ArrayIterator / DesktopUserAgent.php
Last active February 12, 2020 17:54
PHP Response Generator , Simple Token Generator & User-Agent Helper
<?php
declare(strict_types=1);
namespace ArrayIterator\Library\Source\Generator;
use InvalidArgumentException;
use RangeException;
use TypeError;
/**
@ArrayIterator
ArrayIterator / UpdateTrigger.gs
Last active November 19, 2019 13:32
Update Trigger Google Script
/*====================================================================================================================================*
ImportJSON by Brad Jasper and Trevor Lohrbeer
====================================================================================================================================
Version: 1.5.0
Project Page: https://github.com/bradjasper/ImportJSON
Copyright: (c) 2017-2019 by Brad Jasper
(c) 2012-2017 by Trevor Lohrbeer
License: GNU General Public License, version 3 (GPL-3.0)
http://www.opensource.org/licenses/gpl-3.0.html
------------------------------------------------------------------------------------------------------------------------------------
@ArrayIterator
ArrayIterator / Job Vacancy
Created January 20, 2020 11:25
Job vacancy - Logisly
Rekan rekan sekalian Ysh, Logisly, perusahaan platform logistik B2B sedang membuka lowongan untuk beberapa posisi.
1. Principal/senior engineering manager.
2. Senior frontend developer.
3. Senior backend developer.
4. Senior UI/UX designer(engineering/quantitive discipline background).
5. Senior security engineer(offensive oriented).
Silahkan sertakan CV dan jawaban dari pertanyaan berikut melalui email kepada [email protected].
<?php
declare(strict_types=1);
namespace ArrayIterator\Service\Core\Generator;
use InvalidArgumentException;
use RangeException;
use TypeError;
/**

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 :

@ArrayIterator
ArrayIterator / ISO3166.json
Last active February 19, 2020 05:21
FULL 2020/02 - ISO 3166 Country Codes
{
"BD": {
"name": "Bangladesh",
"continent": {
"code": "AS",
"name": "Asia"
},
"code": {
"alpha2": "BD",
"alpha3": "BGD"