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 | |
$result = json_decode(getURL("https://itunes.apple.com/au/app/minecraft/id479516143?dataOnly=true"), true); | |
for($i = 0, $count = count($result["pageData"]) - 1; $i < $count; ++$i) { | |
$info = $result["pageData"]["versionHistory"][$i]; | |
$releaseTime = new \DateTime($info["releaseDate"], new \DateTimeZone("Australia/Sydney")); | |
printf("Minecraft: PE version %s, released on %s" . PHP_EOL . PHP_EOL, $info["versionString"], $releaseTime->format("l\\, jS \\o\\f F Y")); | |
} |
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
let lastStuffTime = 0; | |
let lastMoveOnTime = 0; | |
let lastProjectTime = 0; | |
let lastWorkTime = 0; | |
let lastJobChangeTime = 0; | |
setInterval(function() { | |
let equipment = document.getElementById("equipment"); | |
let equipmentList = equipment.innerHTML.split("<br>"); | |
let equipmentContents = {}; |
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 | |
$opts = getopt("", ["file:"]); | |
if(!isset($opts["file"])) { | |
echo "Please specify a path with --path" . PHP_EOL; | |
exit(0); | |
} | |
$filename = rtrim($opts["file"], ".phar"); |
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 | |
/* | |
* Script to quickly generate the aliases.php stub file | |
*/ | |
$root_path = realpath(__DIR__ . "/../../.."); // path to the project root directory | |
$config = preg_replace("/\s+/", "", file_get_contents($root_path . "/config/app.php")); // get the app config and strip all white space |
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 | |
$flagsTypes = [ // MCPE protocol 120 data flag types | |
0 => "on fire", | |
1 => "sneaking", | |
2 => "riding", | |
3 => "sprinting", | |
4 => "action", | |
5 => "invisible", | |
6 => "tempted", |
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 | |
Class Gary extends YouTuber { | |
private $isSnail = false; | |
private $hasClickbaitContent = false; | |
public function setIsSnail(bool $value = true) { | |
$this->isSnail = $value; | |
} |
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 | |
/* | |
* Data in the form of: x y z\nx y z | |
*/ | |
$data = | |
'384 1 -71 | |
383 1 -26 | |
384 1 25 | |
383 1 70 | |
480 1 -71 |
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
{ | |
"Login": { | |
"protocols": { | |
"107": { | |
"pid": "0x01", | |
"canBatch": false, | |
"canSendBeforeLogin": true, | |
"minecraft-versions": [ | |
"1.0.7.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
PocketMine-MP Crash Dump Fri Mar 24 17:54:37 EDT 2017 | |
Error: Call to a member function addEntityMovement() on null | |
File: /src/pocketmine/Player | |
Line: 1468 | |
Type: notice | |
Code: | |
[1459] if(!$isFirst){ | |
[1460] $ev = new PlayerMoveEvent($this, $from, $to); |
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
Usage: | |
Install source: ./github-installer.sh | |
Install compiled server Phar without source: ./github-installer.sh --compile --no-source | |
Install DevTools and compiled server Phar with source: ./githubinstaller.sh --devtools --compile | |
Install DevTools and compiled server Phar without source: ./github-installer.sh --devtools --compile --no-source |