- Install Raspberry Pi OS image and "Raspberry Pi Imager" software from https://www.raspberrypi.org/software/
- Flash OS image via Raspberry Pi Imager
- Open E:\config.txt (assuming E:\ is the drive the image was flashed on to)
- Add
enable_uart=1under the[all]section (the section is most likely at the end of file) - Add
dtoverlay=disable-btunder the[all]section - Insert SD card in Raspberry Pi
- Connect to device via serial line at speed=115200
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); | |
| final class Node{ | |
| public static function buildTree(int $size, ?Node $node = null) : self{ | |
| $node ??= new Node(); | |
| $node->entries[0] = new Node(); | |
| $node->entries[1] = new Node(); |
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); | |
| /** | |
| * @name InventoryTransactionEventTest | |
| * @main muqsit\testing\InventoryTransactionEventTest | |
| * @api 4.0.0 | |
| * @version 0.0.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 | |
| declare(strict_types=1); | |
| final class Player{ | |
| /** @var int */ | |
| public $id; | |
| /** @var bool */ |
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); | |
| final class XboxLiveAPI{ | |
| private static function parseJsonResponse(string $response) : array{ | |
| $data = json_decode($response, true); | |
| if(isset($data["error"])){ | |
| throw new ErrorException("{$data["error"]}: {$data["error_description"]}"); |
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); | |
| $db = $argv[1]; | |
| $host = $argv[2]; | |
| $user = $argv[3]; | |
| $pwd = $argv[4]; | |
| $mysql = new mysqli($host, $user, $pwd, $db); |
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
| { | |
| "3:2": "243:0", | |
| "29:2": "29:3", | |
| "29:3": "29:2", | |
| "29:4": "29:5", | |
| "29:5": "29:4", | |
| "31:0": "32:0", | |
| "33:2": "33:3", | |
| "33:3": "33:2", | |
| "33:4": "33:5", |
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); | |
| namespace muqsit\fakeplayer; | |
| use pocketmine\entity\Skin; | |
| use pocketmine\event\Listener; | |
| use pocketmine\network\mcpe\NetworkSession; | |
| use pocketmine\network\mcpe\PacketSender; |
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 | |
| const TESTS = 1000000; | |
| function getPercentageBool(float $percentage) : bool{ | |
| return (mt_rand() / mt_getrandmax()) <= ($percentage * 0.01); | |
| } | |
| for($numbers = 0; $numbers < 10; ++$numbers){ | |
| $percentage = mt_rand(0, 99) + lcg_value(); |
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 | |
| $pages = (int) $argv[1]; | |
| $output = $argv[2]; | |
| if(file_exists($output)){ | |
| echo "File " . $output . " already exists." . PHP_EOL; | |
| return; | |
| } |