Skip to content

Instantly share code, notes, and snippets.

View Isinlor's full-sized avatar

Tomasz Darmetko Isinlor

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
dateRep,day,month,year,cases,deaths,countriesAndTerritories,geoId,countryterritoryCode,popData2019,continentExp,Cumulative_number_for_14_days_of_COVID-19_cases_per_100000
08/08/2020,8,8,2020,78,9,Afghanistan,AF,AFG,38041757,Asia,2.57348786
07/08/2020,7,8,2020,41,0,Afghanistan,AF,AFG,38041757,Asia,2.65234858
06/08/2020,6,8,2020,67,4,Afghanistan,AF,AFG,38041757,Asia,2.57874525
05/08/2020,5,8,2020,82,6,Afghanistan,AF,AFG,38041757,Asia,2.89681678
04/08/2020,4,8,2020,37,4,Afghanistan,AF,AFG,38041757,Asia,2.97567749
03/08/2020,3,8,2020,0,1,Afghanistan,AF,AFG,38041757,Asia,3.2464326
02/08/2020,2,8,2020,0,0,Afghanistan,AF,AFG,38041757,Asia,3.70382472
01/08/2020,1,8,2020,168,12,Afghanistan,AF,AFG,38041757,Asia,3.73536901
31/07/2020,31,7,2020,71,0,Afghanistan,AF,AFG,38041757,Asia,3.86943221
name: penulatimate-b
source code: |-
input: 'aaaa'
blank: ' '
start state: fastForward
table:
fastForward:
[a, b]: {R: fastForward}
' ' : {L: ultimate}
ultimate:
@Isinlor
Isinlor / Makefile
Created March 6, 2019 13:39 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@Isinlor
Isinlor / .gitignore
Last active January 21, 2022 09:59
Basic Makefile and Git Hook with static code analysis
/bin/
/vendor/
/**
* Preliminary benchmark trying to figure out whether arrays or objects are faster in PHP in use cases of the algorithm.
*
* @author Tomasz Darmetko <tomasz.darmetko@gmail.com>
*/
class ObjectVsArrayBench extends AbstractBenchmarkCase
{
use RelevantRelationshipTrait;
@Isinlor
Isinlor / DeepArray.php
Last active June 21, 2017 12:33
DeepArray to simplifies work with arbitrarily deeply nested arrays.
<?php
/**
* Simplifies work with deep nested arrays.
*
* @author Tomasz Darmetko <tomasz.darmetko@gmail.com>
*/
class DeepArray
{
@Isinlor
Isinlor / Makefile
Created April 26, 2017 09:14 — forked from isaacs/Makefile
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@Isinlor
Isinlor / .gitignore
Created September 9, 2016 12:20 — forked from beberlei/.gitignore
Doctrine + DomainEvents
vendor/
db.sqlite
composer.lock
@Isinlor
Isinlor / whitespaces.php
Last active March 3, 2016 09:25
Two functions to work with unicode whitespaces. See: http://php.net/manual/en/regexp.reference.unicode.php
<?php
$compactWhitespace = function ($string) {
return preg_replace('/[\pZ\pC]+/u', ' ', $string);
};
$trim = function ($string) {
return preg_replace('/^[\pZ\pC]+|[\pZ\pC]+$/u', '', $string);
};
@Isinlor
Isinlor / DynamicLoops.php
Created February 22, 2016 15:24
Interface and calsses that allows dynamical nesting of loops
<?php
/**
* Interface DynamicLoops
*
* Allows to dynamically nest loops eg.:
*
* $loops = [
* function (DynamicLoops $nextLoop, array $values = []) {
* foreach (range(0, 1) as $value) {