This file has been truncated, but you can view the full file.
This file contains 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
UEsDBAoAAAAAAOl7nlgAAAAAAAAAAAAAAAAFABwAZGF0YS9VVAkAA3bIMGbfyDBmdXgLAAEEAAAAAAQAAAAAUEsDBBQAAAAIABZ6nlg7m8oxPwMAAJEDAAAKABwAZGF0YS8wLnBuZ1VUCQADC8UwZpLIMGZ1eAsAAQQAAAAABAAAAADrDPBz5+WS4mJgYOD19HAJAtIKIMzBBCT/SLxdzMDAHOHp4hjiwbv1oH2GaLkMw4fzon+Yp3m4VlxQ1byq2MgT5iIisn3KNIHbixY4OTrKiAju2f7HR3wiT53z7jue66On+vmpWnhsX7RokcDj+S87w5pXOB9Rj2RKyt/50KGgar6/mCCbZjdH8xTXFsdTSocUUgUTJ2zqMPCIdMl4nfdvwbcH9kdmCc4PElWtOl7nsOZXULSY4K1ds+1X2P7g35h2ZHmIa+e9jfICq/ddmebasm2VxsXqXyyz3fYd2ih8vNYndMqPj7//WtS/lz9yr/nWpo4LYUBj/OcnXD4RblH2aEf/yi4h+7r98s/f/22+UR0AMnnVIpf3L3W3OrsLRpf9nAE0bneNo+58Nx+5CzDjq7zfXgg8Mi3WbpmW1xe9+IDTywUns29JFVy4VsvrzY193NP3/WWbezl94vIlgaKq++Tkjl0tXn5hplWTjWou0Euru4Sst70/tDR/v+PzL5FPNDOB7l/f3l749Y5mybI+BX9PiCOOvLhh8eyfxeKyHypJSfPdQqe8iN23YFshx9y1k08EX4I4xdDKrG+n/bkVsnadM24sB1pWNV1/Ra6MU/prlU9ToA7q6evNPlO7reXG5vDFQOeu+9N58p1O3v09bXDXLE5+LFU8X1fx25urK7qE9mrXJ22y7r5tvl4R7BSp0MBF5v/N1fj9klN39v/8zQ20/cW9v+LC+r8i9uZxaJ+uPXM/3mHeJDeSlK4AWzvjt2549feot0+VrOznuwIlvj+Uzdn9m0N6342Gq6/bNmy6c/zq1/eCu5dPcGWBhkjd6av39oZV7+w4dx4U |
This file contains 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\math\AxisAlignedBB; | |
use pocketmine\math\Facing; | |
use pocketmine\math\Vector3; | |
use pocketmine\math\VoxelRayTrace; | |
use pocketmine\player\Player; | |
use pocketmine\scheduler\CancelTaskException; |
This file contains 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\math\AxisAlignedBB; | |
use pocketmine\math\Facing; | |
use pocketmine\math\Vector3; | |
use pocketmine\player\Player; | |
use pocketmine\scheduler\CancelTaskException; | |
use pocketmine\scheduler\ClosureTask; |
This file contains 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 KitEditorPlugin | |
* @main muqsit\kiteditorplugin\KitEditorPlugin | |
* @api 5.0.0 | |
* @version 0.0.1 | |
*/ |
This file contains 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 pocketmine\phpstan\rules; | |
use Generator; | |
use PhpParser\Node\Arg; | |
use PhpParser\Node\Expr\ArrayItem; | |
use PhpParser\Node\Expr\Assign; |
This file contains 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\nbt\tag\CompoundTag; | |
use pocketmine\player\Player; | |
use pocketmine\Server; | |
$server = Server::getInstance(); | |
assert(isset($sender) && $sender instanceof Player); |
This file contains 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 cosmicpe\CosmicPE; | |
use pocketmine\block\Block; | |
use pocketmine\block\BlockTypeIds; | |
use pocketmine\block\Liquid; | |
use pocketmine\block\VanillaBlocks; | |
use pocketmine\event\EventPriority; |
This file contains 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 | |
final class AdjacencyMatrix{ | |
public static function read(string $data) : self{ | |
return new self(array_values(unpack("J*", $data))); | |
} | |
public static function of(int $size) : self{ | |
return new self(array_fill(0, ($size >> 4) | $size, 0)); |
This file contains 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 numpy as np | |
from numpy import exp, array, random, dot | |
class NeuralNetwork(): | |
def __init__(self): | |
self.synaptic_weights = 2 * random.random((3, 1)) - 1 | |
def __sigmoid(self, x): | |
return 1 / (1 + exp(-x)) |
This file contains 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 Matrix{ | |
/** | |
* Equivalent of numpy.random.random(size=(size_x, size_y)) | |
* | |
* @param int $size_x |
NewerOlder