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 | |
# coding: utf-8 | |
__author__ = "ChenyangGao <https://chenyanggao.github.io/>" | |
__version__ = (0, 0, 1) | |
__all__ = ["tail"] | |
from sys import stdout | |
from time import sleep |
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 | |
# coding: utf-8 | |
# Reference: | |
# https://github.com/pymupdf/PyMuPDF | |
# https://pymupdf.readthedocs.io/en/latest/ | |
__author__ = "ChenyangGao <https://chenyanggao.github.io/>" | |
__version__ = (0, 0, 2) | |
__all__ = ["remove_text_blocks", "remove_last_text_block"] |
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 | |
# coding: utf-8 | |
"""\ | |
Tool for setting the index-url of pip | |
Reference: | |
- https://pip.pypa.io/en/latest/ | |
- https://docs.python.org/3/installing/index.html | |
- https://docs.python.org/3/library/ensurepip.html |
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 | |
# coding: utf-8 | |
"""This module provides several classes, which are used to collect | |
some arguments at one time and then use them repeatedly later.""" | |
__author__ = "ChenyangGao <https://chenyanggao.github.io/>" | |
__version__ = (0, 1) | |
__all__ = ["Args", "UpdativeArgs"] |
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 | |
# coding: utf-8 | |
"""这个模块提供了工具函数,可以把 `pandas` 的 `DataFrame` 转换成 | |
xlsx 格式的 Excel 文件的二进制数据 | |
""" | |
__author__ = "ChenyangGao <https://chenyanggao.github.io/>" | |
__version__ = (0, 1) | |
__all__ = ["df_to_excel_bytes", "sql_to_excel_bytes"] |
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 | |
# coding: utf-8 | |
"""这个模块提供了一些函数,做一些有关数字正负号相关的事情。 | |
""" | |
__author__ = "ChenyangGao <https://chenyanggao.github.io/>" | |
__version__ = (0, 0, 1) | |
__all__ = [ | |
"sign", "sign2", "turnsign", "bysign", "bysign1", |
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 | |
# coding: utf-8 | |
# Reference: | |
# https://docs.python.org/3/installing/index.html | |
# https://packaging.python.org/tutorials/installing-packages/ | |
# https://pip.pypa.io/en/stable/ | |
__author__ = 'ChenyangGao <https://chenyanggao.github.io/>' | |
__version__ = (0, 0, 6) |
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 bash | |
# current_shell_rcfile() { | |
# if [ -n "$BASH_VERSION" ]; then | |
# printf "%s\n" ~/.bashrc | |
# elif [ -n "$ZSH_VERSION" ]; then | |
# printf "%s\n" ~/.zshrc | |
# elif [ -n "$FISH_VERSION" ]; then | |
# printf "%s\n" ~/.config/fish/config.fish | |
# elif [ -n "$XONSH_VERSION" ]; then |
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 | |
# coding: utf-8 | |
"""Unihan (UNICODE HAN DATABASE) Character Information Query Tool | |
Latest version: | |
- https://www.unicode.org/reports/tr38/ | |
Unihan source: | |
- https://www.unicode.org/Public/UCD/latest/ucd/Unihan.zip | |
- https://www.unicode.org/Public/UCD/latest/ucd/ |