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
from typing import Union, List, Tuple | |
# da stupidest and ugliest (with added bonus of bugs) way to calculate square root on a computer. i.e: by human division method | |
# Working? | |
# works by splitting the number into pairs , then the first pair | |
# is divided by a perfect square. the reminder is attached to next pair | |
# and the divisor is doubled and a constant is determined and attached to | |
# the divisor and the new divisor is multiplied by the same constant. | |
# we add the constant to the divisor in next iteration and we keep | |
# going till the reminder is 0. |
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
#!/usr/bin/env python3 | |
# Licensed under WTF Public License | |
from typing import NoReturn, Union | |
class ZaryabFoundError(Exception): | |
pass | |
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
" DO NOT EDIT THIS FILE | |
" Add your own customizations in ~/.vim_runtime/my_configs.vim | |
" Modifcation to .vimrc | |
set runtimepath+=~/.vim_runtime | |
source ~/.vim_runtime/vimrcs/basic.vim | |
source ~/.vim_runtime/vimrcs/filetypes.vim | |
source ~/.vim_runtime/vimrcs/plugins_config.vim | |
source ~/.vim_runtime/vimrcs/extended.vim |
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
""" | |
My Config for Qutebrowser | |
""" | |
import os | |
import sys | |
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
# Will only work for external modules | |
import pkg_resources | |
module_list = [] | |
def check_module(Module): | |
for module in pkg_resources.working_set: | |
module_list.append(str(module).split()[0]) | |
if Module not in module_list: | |
print(f"{Module} Module not found\n install it using 'pip install {Module}'") | |
else: | |
print(f'{Module} Module is installed on your System') |