This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section .data | |
str_buffer db 0 | |
section .text | |
global _start | |
calculate_ten_power: | |
; calculate the power of 10 that corresponds to an integer | |
; for example, 100 for 543, 1000 for 8956, and 10000 for 15236 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import inspect # For getting the source of the decorated function | |
import tokenize # For tokenizing each line of the decorated function | |
import io # Used to read the line of code into the tokenizer | |
import decimal # Used for fixing floating-point errors | |
def decistmt(s): | |
# Function for parsing a line of code and making all floats into decimal objects | |
# List containing all tokens of new statement | |
result = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import msvcrt, time # Windows | |
except ModuleNotFoundError: | |
import select # Unix | |
import sys | |
class TimedInput: | |
def input(self, text, timeout_s, default=None): | |
if 'select' in sys.modules: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aspect = 0 | |
separate_widget = "" | |
tab_len = 0 | |
visit_items = OFF | |
use_shadow = OFF | |
use_colors = ON | |
screen_color = (WHITE,DEFAULT,OFF) | |
shadow_color = (WHITE,WHITE,OFF) | |
dialog_color = (WHITE,BLACK,OFF) | |
title_color = (CYAN,BLACK,OFF) |