Skip to content

Instantly share code, notes, and snippets.

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>
// 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:
@oscar-broman
oscar-broman / .el
Last active August 18, 2016 13:17
quickly change indentation in spacemacs
;; 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
package react
import scala.annotation.implicitNotFound
import scala.util.NotGiven
object Domain {
sealed trait Observable[T] {
def observe(op: => T): Unit
}
}