This file contains 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 sys | |
if __name__ == "__main__": | |
iterations = 0 | |
CLOCK_HAND = 0 | |
FRAMES = int(input("Enter the number of frames in memory/TLB: ")) | |
MEM = [["empty", 0] for i in range(FRAMES)] | |
print("Now, enter the reference trace (page references). " | |
"Exit with EOF or empty line (CRLF or LF)") |
This file contains 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
############################################################################### | |
# UltiSnips snippets for me to type LaTeX quickly | |
# Borrows a handful of snippets from https://castel.dev/post/lecture-notes-1/ | |
# | |
# Mainly tailored to my own typing style and workflow. | |
# In particular: | |
# - I often work in temporary scratchpad windows using i3wm and have | |
# bindsym commands to quickly open vim+zathura with vimtex. 'tbmath' and | |
# its variants use my steven.sty file with various QoL improvements and | |
# wrappers for nice typesetting. |