call plug#begin('~/.vim/plugged')
Plug 'tomasiser/vim-code-dark'
Plug 'pangloss/vim-javascript'
Plug 'scrooloose/nerdtree'
Plug 'morhetz/gruvbox'
Plug 'leafgarland/typescript-vim'
from functools import wraps | |
def my_logger(orig_func): | |
import logging | |
logging.basicConfig( | |
filename="{}.log".format(orig_func.__name__), level=logging.INFO | |
) | |
@wraps(orig_func) |
import memory_profiler as mem_profile | |
import random | |
import time | |
names = ["John", "Corey", "Adam", "Steve", "Rick", "Thomas"] | |
majors = ["Math", "Engineering", "CompSci", "Arts", "Business"] | |
print(f"Memory (Before): {mem_profile.memory_usage()}Mb") | |
num1 = 13 | |
num2 = 16 | |
# Tuple | |
print(("Odd", "Even")[num1 % 2 == 0]) | |
print(("Odd", "Even")[num2 % 2 == 0]) | |
# Dict | |
print({True: "Even", False: "Odd"}[num1 % 2 == 0]) | |
print({True: "Even", False: "Odd"}[num2 % 2 == 0]) |