Skip to content

Instantly share code, notes, and snippets.

View anula's full-sized avatar

Anna Szybalska anula

View GitHub Profile

Keybase proof

I hereby claim:

  • I am anula on github.
  • I am anula (https://keybase.io/anula) on keybase.
  • I have a public key whose fingerprint is 6D92 EFCB 5A24 65EA 4BD6 DF73 E1DA 016D 6A65 9B17

To claim this, I am signing this object:

@anula
anula / gist:5748a896cb0c749257a5
Created May 8, 2015 20:08
Workaround for colorful prompt in prompt_toolkit
from __future__ import unicode_literals
from prompt_toolkit.contrib.completers import WordCompleter
## Almost exact copy of prompt_toolkit.shortcuts
from prompt_toolkit.buffer import Buffer
from prompt_toolkit.enums import DEFAULT_BUFFER
from prompt_toolkit.eventloop.base import EventLoop
from prompt_toolkit.filters import IsDone, HasFocus, Always, Never, RendererHeightIsKnown
from prompt_toolkit.history import History
global start
section .bss
stack_top:
resb 64
stack_bottom:
section .text
bits 32
start: