This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use pocketmine\plugin\Plugin; | |
use pocketmine\scheduler\ClosureTask; | |
use pocketmine\scheduler\TaskHandler; | |
use Generator; | |
$generator = (function (int $second): Generator { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
class ExampleThread extends Thread | |
{ | |
/** @var int */ | |
private $id; | |
public function __construct(int $id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
function get(string $per, ?int $keta = null) | |
{ | |
if ($keta === null) { | |
preg_match('/\.[0-9]+/', $per, $matches); | |
$m = $matches[0]; | |
$keta = strlen($m) - 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @name SaveSkin | |
* @version 1.0.0 | |
* @main PJZ9n\SaveSkin\Main | |
* @api 3.0.0 | |
*/ | |
declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @name SaveSkin | |
* @version 1.0.0 | |
* @main PJZ9n\SaveSkin\Main | |
* @api 3.0.0 | |
*/ | |
declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @name SaveSkin | |
* @version 1.0.0 | |
* @main PJZ9n\SaveSkin\Main | |
* @api 3.0.0 | |
*/ | |
declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @name SlotTest | |
* @version 1.0.0 | |
* @main PJZ9n\SlotTest\Main | |
* @api 3.0.0 | |
*/ | |
declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Calc | |
{ | |
/** @var int */ | |
private $all; | |
/** @var int[] */ | |
private $chance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @name SlotTest | |
* @version 1.0.0 | |
* @main PJZ9n\SlotTest\Main | |
* @api 3.0.0 | |
*/ | |
declare(strict_types=1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.*; | |
import java.awt.Robot; | |
import net.sourceforge.tess4j.*; | |
import java.io.File; | |
import java.awt.image.BufferedImage; | |
import java.awt.event.KeyEvent; | |
final int PHASE_POS1 = 0; | |
final int PHASE_POS2 = 1; | |
final int PHASE_WAIT = 2; |