I hereby claim:
- I am ircmaxell on github.
- I am ircmaxell (https://keybase.io/ircmaxell) on keybase.
- I have a public key whose fingerprint is D620 2127 D88F 66C2 10A3 BFEB 6A7C A4E4 A190 DC6B
To claim this, I am signing this object:
<?php | |
function ackersum($a, $b) { | |
if ($a == 0) { | |
return $b; | |
} elseif ($b == 0) { | |
return $a; | |
} elseif ($a == 1) { | |
return $b + 1; | |
} |
interface Foo1 { | |
public function bar() | |
} | |
interface Foo2 { | |
public function bar() | |
} | |
interface Foo3 { | |
public function bar() |
<?php | |
class a { | |
const a = b::c; | |
const b = b::d; | |
} |
<?hh | |
class B { | |
public function doB() : string { | |
return "b"; | |
} | |
} | |
class C extends B { | |
public function doC() : string { |
<?php | |
namespace ZPP; | |
const IS_STRING = "string"; | |
const IS_BOOL = "boolean"; | |
const IS_LONG = "integer"; | |
const IS_DOUBLE = "double"; | |
const IS_ARRAY = "array"; | |
const IS_OBJECT = "object"; |
<?php | |
class HashCipher { | |
protected $hash = 'sha512'; | |
protected $hashLen = 64; | |
protected $rounds = 16; | |
public function __construct($hash, $rounds = 16) { | |
$this->hash = $hash; | |
// run a test hash, to get the proper hash length |
I hereby claim:
To claim this, I am signing this object:
<?php | |
declare(ticks=1); | |
$__stack = []; | |
function getArrayKey(array $haystack, $needle) { | |
return isset($haystack[$needle]) ? $haystack[$needle] : ''; | |
} |
<?php | |
$shard = $this->getMock('Solarium_Query_Select_Component_DistributedSearch'); | |
$shard->expects($this->exactly(2)) | |
->method('addShard'); | |
$shard->expects($this->at(0)) | |
->method('addShard') | |
->with('k1', 'u1'); | |
$shard->expects($this->at(1)) | |
->method('addShard') |
<?php | |
if ($foo == 1) { | |
echo "1"; | |
} elseif ($foo == 2) { | |
echo "2"; | |
} elseif ($foo == 3) { | |
echo "3"; | |
} else { | |
echo "4"; |