Skip to content

Instantly share code, notes, and snippets.

View DavidRockin's full-sized avatar
🇺🇦
kinda want some borscht tbh

Dave DavidRockin

🇺🇦
kinda want some borscht tbh
View GitHub Profile
@DavidRockin
DavidRockin / branch-rotation.js
Created January 16, 2022 20:01
dave's sexy secet rotation branch magic
/**
* KEK rotation bitwise magic go BBRRRRRRRRRRRRRRRRRRRRRRRRR
*
* (c) Dave T kek
*/
__BRANCH__.engine.worldManager.entityManager.entityInteraction.rotateTileEntity = (e, id, cw) => {
let bits = (id >>> 29);
bits = (bits + 1) % 0b111;
id = ((bits << 29) | (id & 0x1FFF_FFFF)) >>> 0;
@DavidRockin
DavidRockin / branch-sex-mod.js
Last active February 18, 2022 07:57
dave t's branch sex mod lmao
/**
* Dave T's Branch Sex Mod
*
* KEK. copy paste this crap into ur console, then to do some fuggin
* just click on another marble. to make it stop, just click yourself lmao
*
* v2.0: add new control button to change direction, speed, or toggle on/off
*
* @author Dave T.
* @version 2.0
@DavidRockin
DavidRockin / branch.md
Created September 9, 2021 08:55
Branch Secrets & Keybindings

We should probably document these and make it configurable kek 🤔🤔🤔

Keybindings

  • Keyboard movement WASD or arrows keys
  • Crouching (or slow movement) press c while keyboard moving
  • Rotate item in worldedit pressing r or counter-clockwise rotation shift + r
  • quickly pickup and place an item by holding Q and click an item or a location to place it
  • take a screenshot pressing F2
  • quick item placement in worldedit mode by holding V to spam lots of items in kek
  • pickup an item press SPACEBAR to throw it to your cursor position
@DavidRockin
DavidRockin / Mailer.php
Created August 2, 2014 21:53
PHPMailer save emails to IMAP folder
<?php
class Mailer extends PHPMailer {
/**
* Save email to a folder (via IMAP)
*
* This function will open an IMAP stream using the email
* credentials previously specified, and will save the email
* to a specified folder. Parameter is the folder name (ie, Sent)