PBP comes with a few modules by default. These are not mandatory in any way, you can simply remove those you don't need.
The core module doesn't do much.. yet.
You can declare groups as global variables with the following syntax:
package react | |
import scala.annotation.implicitNotFound | |
import scala.util.NotGiven | |
object Domain { | |
sealed trait Observable[T] { | |
def observe(op: => T): Unit | |
} | |
} |
;; Put inside dotspacemacs/user-config | |
(defun set-tab-width (n) | |
(dolist (var '(evil-shift-width | |
default-tab-width | |
tab-width | |
c-basic-offset | |
cmake-tab-width | |
coffee-tab-width | |
cperl-indent-level |
#include <a_samp> | |
// Enclose statement | |
#define ENC: \ | |
(_:E1:E2:E3:E4:E5:E6:E7:E8:E9:E10:E11:E12:E13:E14:E15:E16:E17:E18:0, | |
#define ENC_END: \ | |
) | |
#define E1:E2:E3:E4:E5:E6:E7:E8:E9:E10:E11:E12:E13:E14:E15:E16:E17:E18:0,%1\32;%2 ENC_2:%1 ENC_END: |
switch (weaponid) { | |
// The spas shotguns shoot 8 bullets, each inflicting 4.95 damage | |
case WEAPON_SHOTGSPA: { | |
bullets = amount / 4.950000286102294921875; | |
if (8.0 - bullets < -0.05) { | |
return WC_INVALID_DAMAGE; | |
} | |
} |
#include <a_samp> | |
#tryinclude "amx_assembly\amx_header" | |
#if !defined _inc_amx_header | |
#error amx_assembly is required. Get it here: github.com/zeex/amx_assembly | |
#endif | |
#include "amx_assembly\dynamic_call" | |
#include "amx_assembly\phys_memory" |
/* | |
Much better approach than trying to connect to a range of ports. | |
*/ | |
var net = require('net'); | |
getFreePort(function(err, port) { | |
if (err) throw err; | |
console.log('Port: ' + port); |
<?php | |
function mysqli_fetch_all_typed($result, $resulttype = MYSQLI_NUM) | |
{ | |
if (!$result) | |
return null; | |
$fields = $result->fetch_fields(); | |
if (method_exists($result, 'fetch_all')) { | |
$rows = $result->fetch_all($resulttype); |
<?php | |
function utf8_encode_deep(&$input) { | |
if (is_string($input)) { | |
$input = utf8_encode($input); | |
} else if (is_array($input)) { | |
foreach ($input as &$value) { | |
utf8_encode_deep($value); | |
} | |
unset($value); |
<?php | |
// Requires PAWN-Scanner | |
// Get it here: https://github.com/oscar-broman/PAWN-Scanner | |
// Include path to scan | |
define('INCLUDE_PATH', './', 'a_npc.inc'); | |
// Where to save the files | |
define('PAWN_XML', './PAWN.xml'); | |
define('USER_DEF_LANG', './userDefineLang.xml'); |