Skip to content

Instantly share code, notes, and snippets.

View CraftedCart's full-sized avatar

CraftedCart CraftedCart

View GitHub Profile
@CraftedCart
CraftedCart / NewStages.txt
Last active February 17, 2018 01:08
Bites' pack
EXTRUSION
BOOLEAN
BRUSHSTROKE
AMPLITUDE
DOUBLECROSS
SLOPES 2.0
J-DROP
NOODLES
INVERTED TORII
UPJUMP
@CraftedCart
CraftedCart / Memory.md
Last active March 7, 2018 16:21
Super Monkey Ball 2 Addresses

Memory Addresses

  • 805BC470: DIP switches (32 bit bitmask)
  • 805BCA1C: Score (Int32)
  • 80553974: Timer (Signed Short16)
  • 805BC9BC: X-Velocity (Float32)
  • 805BC9C0: Y-Velocity (Float32)
  • 805BC9C4: Z-Velocity (Float32)
  • 80446C20: Monkey Visibility (Byte?)
@CraftedCart
CraftedCart / QtSupertab.cpp
Created April 18, 2018 23:54
Vim Supertab like completion for a QCompleter
//Somewhere when you create your completer
completer->popup()->installEventFilter(this);
bool CommandWidget::eventFilter(QObject *obj, QEvent *event) {
if (obj == completer->popup()) {
if (event->type() == QEvent::KeyPress) {
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key_Tab) {
//Select the next item in the completion list when tab is pressed - Supertab style
QModelIndex index = completer->popup()->currentIndex();

Keybase proof

I hereby claim:

  • I am craftedcart on github.
  • I am craftedcart (https://keybase.io/craftedcart) on keybase.
  • I have a public key ASCvKQsZrlFbilD2YNiKBk1SulmXDqlqCXTSJI4OvXVCawo

To claim this, I am signing this object: