Skip to content

Instantly share code, notes, and snippets.

View tarreislam's full-sized avatar
:shipit:
I hate github

tarreislam

:shipit:
I hate github
View GitHub Profile
@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/}
@aal89
aal89 / 10kb.txt
Created July 18, 2019 08:49
10kb in text
89075337635954647102216077828334038179638965680796041208684221958292459041499210220101176726750119361506928946801115768179724
42244632672758898527798766326186965189573496725417576843236332384515325066967967084729236662659424427203830789178855960389888
59671607161000645588293584669984665020199777828148967747970527020608102921980556435899241646582421992569038754973449362160805
31239955776017464552148435666505635723861800404618684226812752076597749931057757306056294943547000781262839809899923354086591
58421004045160720410218892782153917915938163263152750197199304506126821048289291640271668334925747202569241057032162874410383
13229406649061136455569503589840650992763870062625721531357020224282471379189564485235429826481871222615972206141109473569331
50068277012583532229033541176707338889365478924968936854152065761173915111644345900669149625078722916074227614326832708754591
53533652284306970616530322571286936751979637851359030657540649747647283544275697965879550870371044054664298592239900461215946
7600905955755449
@faisalman
faisalman / print_r.js
Last active September 13, 2021 02:57
PHP-like print_r() & var_dump() equivalent for JavaScript
/**
* PHP-like print_r() equivalent for JavaScript Object
*
* @author Faisalman <fyzlman@gmail.com>
* @license http://www.opensource.org/licenses/mit-license.php
* @link http://gist.github.com/879208
*/
var print_r = function (obj, t) {
// define tab spacing