Skip to content

Instantly share code, notes, and snippets.

View PJZ9n's full-sized avatar
🏠
Working from home

PJZ9n PJZ9n

🏠
Working from home
View GitHub Profile
<?php
/**
* _____ _ _________
* | __ \ | |___ / _ \
* | |__) | | | / / (_) |_ __
* | ___/ | | / / \__, | '_ \
* | | | |__| |/ /__ / /| | | |
* |_| \____//_____|/_/ |_| |_|
*
<?php
$sql = /** @lang SQLite */
<<< SQL
あいうえお
THIS IS HERE DOCUMENT
かきくけこ
SQL;
function fuga() {
<?php
declare(strict_types=1);
/**
* @name DirectionTest
* @version 1.0.0
* @main PJZ9n\DirectionTest\DirectionTest
* @api 3.0.0
*/
<?php
declare(strict_types=1);
use Particle\Validator\Validator;
//Example 1
$target = [
"max-players" => 50,
"now-players" => 10,
<?php
/** @var string */
private static $composerAutoloaderPath = null;
/**
* @return string
*/
public static function getComposerAutoloaderPath(): string
{
<?php
declare(strict_types=1);
require_once __DIR__ . "/vendor/autoload.php";
use Particle\Filter\Filter;
use Particle\Validator\Validator;
$post = [
<?php
declare(strict_types=1);
$rawText = file_get_contents("a.txt");
$arrayText = explode("\r\n", $rawText);
//echo "<h3>Raw Text</h3>";
//echo "<pre>" . $rawText . "</pre>";
<?php
declare(strict_types=1);
/**
* @name Hunger
* @version 1.0.0
* @main Hunger\Main
* @api 3.0.0
*/
@PJZ9n
PJZ9n / messages.yml
Created March 13, 2020 01:07
Messages For CustomShopUI
Titles:
Category: "ShopUI" # Title on the Main Shop!
Items: "アイテム" # Title on the Items Section (All of these three things can have colors using the "§" Symbol!)
Amount: "個数" # Title on the Buying area with Sliders and Things!
Messages:
Survival: "ショップを使用するには、サバイバルモードである必要があります!" # Message for when player is in creative and shop is set to survival only
ExitButton: "§c§l戻る" # Button for Item Category
Category_ExitButton: "§c§l終了" # Button for Exiting Plugin!
@PJZ9n
PJZ9n / money.php
Created March 15, 2020 13:19
Webサーバー側
<?php
//とても単純な例で、そのまま使うことを前提としていません
//同一ディレクトリに所持金記録用のmoney.jsonがあるとする
function response(int $code, array $data = []): void{
http_response_code($code);
echo json_encode($data);
exit();
}