This file contains hidden or 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 | |
/** | |
* PHP LDAP parser | |
* | |
* --- --- --- --- --- | |
* Requirements: | |
* php.ini | |
* uncomment "extension=ldap" | |
* | |
* Library's |
This file contains hidden or 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
// ==UserScript== | |
// @name Google Translate Tooltip | |
// @namespace steely.wing | |
// @version 1.10 | |
// @description Translates selected text into a tooltip. | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @copyright 2014, Wing Leong (http://steelywing.iblogger.org/) | |
// @include * | |
// @require http://code.jquery.com/jquery-3.6.0.min.js | |
// @grant GM_getValue |
This file contains hidden or 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 | |
/* | |
REQUIRED jquery-3.6.0.min.js | |
$data is JSON response | |
-- Custom Requests -- | |
data -> Allow to specify JSON start position, use ";" for more options | |
Example -> url/?data=data1;1;values => $data["data1"][0]["values"]; | |
noSub -> Hide sub tables | |
*/ |
This file contains hidden or 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
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) | |
public void onTNT(final EntityExplodeEvent e) { | |
e.setCancelled(true); | |
/* | |
* Use e.getEntityType() to handle knocbacks differently for the entity type, | |
* example if (e.getEntityType() == EntityType.FIREBALL) { // code to change the | |
* knockback } else if (e.getEntityType() == EntityType.PRIMED_TNT) { // code to | |
* change the knockback } | |
* | |
*/ |
This file contains hidden or 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
{ | |
"Subdivisions": [ | |
{ | |
"Country_code": "AD", | |
"name": "Andorra la Vella", | |
"code": "07" | |
}, | |
{ | |
"Country_code": "AD", | |
"name": "Canillo", |
This file contains hidden or 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
{ | |
"Countries": [ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Albania", | |
"code": "AL" | |
}, |