I hereby claim:
- I am drealecs on github.
- I am drealecs (https://keybase.io/drealecs) on keybase.
- I have a public key whose fingerprint is DF3A CCE7 864B EA64 AE03 84CF E1B5 CA70 5BC6 5BD2
To claim this, I am signing this object:
<?php declare(strict_types = 1); | |
$game = new GameState(5000); | |
for ($i = 0; $i < 100; $i++) { | |
$game->step(100); | |
} | |
$game->resetDeathLevels(); | |
for ($i = 0; $i < 1000; $i++) { |
<?php | |
if ($argc < 2) { | |
die("Please pass a directory as argument\n"); | |
} | |
$path = $argv[1]; | |
if (!(new SplFileInfo($path))->isDir()) { | |
die("'{$path}' is not directory!\n"); |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.apache.commons.csv.CSVFormat; | |
import org.apache.commons.csv.CSVPrinter; | |
import java.io.IOException; | |
public class JsonCsvEscapingTest { | |
public static void main(String[] args) throws IOException { | |
int intColumnValue = 5; |
<?php | |
class Node | |
{ | |
/** @var Node */ | |
public $previous; | |
/** @var Node */ | |
public $next; | |
} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
class CachedNotRewindableIteratorAggregate implements IteratorAggregate { | |
private Iterator $iterator; | |
private array $cache = []; | |
public function __construct(Iterator $iterator) { | |
$this->iterator = $iterator; | |
} | |
public function getIterator(): Iterator { | |
$index = 0; |
javascript:(function(s){e=document.createElement('script');e.src=s;e.onload=function(){$jq=jQuery.noConflict(true);console.log('jQuery injected as $jq: ' + $jq.fn.jquery)};document.head.appendChild(e)})('//code.jquery.com/jquery-git.min.js') |
<?php | |
function benchmark(callable ...$functions): void | |
{ | |
$times = array_combine(array_keys($functions), array_fill(0, count($functions), 0.)); | |
$baseTime = 0.; | |
$baseCallable = fn() => null; | |
$start = hrtime(true); | |
$count = 0; |