Skip to content

Instantly share code, notes, and snippets.

View jasonw4331's full-sized avatar

Jason Wynn jasonw4331

View GitHub Profile
@jasonw4331
jasonw4331 / MyPlugin.php
Last active April 18, 2017 23:50 — forked from shoghicp/MyPlugin.php
Example of new plugin format aimed for easy scripting.
<?php
/**
* This file is an example of a compressed plaintext plugin format for PocketMine
* It's aimed towards easy scripting, but not for normal plugin development.
*
* This kind of plugin won't be able to embed/load resources,
* nor have access to some features like fast permission/command integration.
*
* This first comment is used to define the properties like on plugin.yml,
@jasonw4331
jasonw4331 / commands.md
Last active April 1, 2017 20:15 — forked from shoghicp/commands.md
Some interesting commands to play with item NBT.

Items with custom name

give jasonwynn10 stick 1 {display:{Name:"§r§6§lNormal stick"}}

Items with enchantments

give jasonwynn10 stick 1 {ench:[{id:12s,lvl:10s}]}
<?php
use pocketmine\plugin\PluginBase;
use pocketmine\Server;
/**
* This class is deliberately meant to be silly
* Class SpoonDetector
*/
class SpoonDetector{
@jasonw4331
jasonw4331 / PngToPlayer.php
Created October 15, 2017 16:35 — forked from robske110/PngToPlayer.php
Set a player's skin in PMMP
<?php
$path = 'your/path/to/skin.png';
$img = @imagecreatefrompng($path);
$bytes = '';
$l = (int) @getimagesize($path)[1];
for ($y = 0; $y < $l; $y++) {
for ($x = 0; $x < 64; $x++) {
$rgba = @imagecolorat($img, $x, $y);
@jasonw4331
jasonw4331 / BlockItemList.md
Created November 16, 2017 17:42 — forked from MinecrafterJPN/BlockItemList.md
Minecraft PE Block / Item List

Block List

ID => BlockName

		0 => "Air"
		1 => "Stone"
		2 => "Grass"
		3 => "Dirt"
		4 => "Cobblestone"

5 => "WoodenPlank"

@jasonw4331
jasonw4331 / poggit-dark.css
Created May 20, 2020 03:37 — forked from inxomnyaa/poggit-dark.css
Poggit dark userstyle - Load it via custom css extension i.e. https://github.com/openstyles/stylus
/* ==UserStyle==
@name Poggit Dark
@version 1.0.6
@description Dark theme for Poggit, a GitHub application for managing PocketMine-family plugins, and website for sharing plugins
@namespace XenialDan
@author XenialDan
@homepageURL https://gist.github.com/thebigsmileXD/ed07c6bd4285614d2c5654c9dce76bf2
@supportURL https://gist.github.com/thebigsmileXD/ed07c6bd4285614d2c5654c9dce76bf2
@updateURL https://raw.githubusercontent.com/StylishThemes/StackOverflow-Dark/master/stackoverflow-dark.user.css
==/UserStyle== */
@jasonw4331
jasonw4331 / YouTube-ad-skipper.js
Created December 6, 2023 21:36 — forked from karlwilbur/YouTube-ad-skipper.js
YouTube Ad Skipper Bookmarklet
javascript:(function()%7Bfunction callback()%7B(function(%24)%7Bvar jQuery%3D%24%3Bwindow.%24%3D%24%3BsetInterval("window.%24('.ytp-ad-skip-button') %26%26 window.%24('.ytp-ad-skip-button').click()"%2C 1000)%7D)(jQuery.noConflict(true))%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()