Skip to content

Instantly share code, notes, and snippets.

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

tomotomo tomocrafter

🏠
Working from home
View GitHub Profile
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Luyten]
@="Open with Luyten"
"icon"="C:\\Users\\User\\Desktop\\luyten-0.5.3.exe,0"
"AppliesTo"=".jar"
[HKEY_CLASSES_ROOT\*\shell\Luyten\command]
@="C:\\Users\\User\\Desktop\\luyten-0.5.3.exe \"%1\""
@tomocrafter
tomocrafter / GuiIngame.java
Last active December 2, 2017 01:16
だれかc(float a)のとこ助けて
import java.util.*;
import com.google.common.base.*;
import javax.annotation.*;
import com.google.common.collect.*;
public class bne extends bnf
{
private static final mq f;
private static final mq g;
private static final mq h;
@tomocrafter
tomocrafter / available-now.txt
Created August 15, 2017 03:43
minecraftで使用可能な3文字ID一覧
01f
01n
01t
01u
01w
01y
02_
02a
02c
02d
<?php
namespace HungerGames\MiniGame;
use pocketmine\Server;
use pocketmine\Player;
use pocketmine\network\protocol\LevelEventPacket;
use pocketmine\math\Vector3;
//use HungerGames\HungerGames;
<?php
const CURRENT_PROTOCOL = 46;
const ACCEPTED_PROTOCOLS = [45, 46];
const LOGIN_PACKET = 0x8f;
const PLAY_STATUS_PACKET = 0x90;
const DISCONNECT_PACKET = 0x91;
const BATCH_PACKET = 0x92;
const TEXT_PACKET = 0x93;
@tomocrafter
tomocrafter / autoexec.cfg
Last active March 17, 2023 15:31
DPI: 3700, 参考: https://gist.github.com/KiloSwiss/a015b0620284ce74b5ed849ec599e51e -novid -nojoy -full -language bananagaming -noforcemaccel -noforcemspd -noforcemparms +exec autoexec -tickrate 128
echo "Loading autoexec..."
cl_interp "0"//ヒットボックスの正確化
cl_interp_ratio "1"//ヒットボックスの正確化
cl_interpolate "1"// エンティティ補完
cl_predict "1"// クライアントサイドで補完
cl_lagcompensation "1"//スキンズレ正確化
cl_downloadfilter "all"
//logの設定
@tomocrafter
tomocrafter / gist:bd59aaaa40d05d15758b92cd331f25bd
Created October 7, 2016 01:08 — forked from uhfx/gist:3922268
Twitter公式/非公式クライアントのコンシューマキー

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg

[
"getCurrentValue",
"getMaxValue",
"getDefaultValue",
"serializationSetRange",
"addBuff",
"removeBuffs",
"setRange",
"getAttribute",
"getMinValue",
<?php
public function onPacketSend(DataPacketSendEvent $e){
$pk = $e->getPacket();
$p = $e->getPlayer();
if($pk->pid() == 0xbf){
list($minX, $minZ, $maxX, $maxZ) = [0, 100, 0, 100];//これだと、0から100chunkだけ読み込まれるようになる
if($pk->chunkX < $minX or $pk->chunkX > $maxX or $pk->chunkZ < $minZ or $pk->chunkZ > $maxZ){
$e->setCancelled(true);
}
}elseif($pk->pid() == 0x95){