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
| #!/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 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
| #!/usr/bin/env python3 | |
| # encoding: utf-8 | |
| "获取 115 文件信息和下载链接" | |
| __author__ = "ChenyangGao <https://chenyanggao.github.io>" | |
| __version__ = (0, 0, 3) | |
| if __name__ == "__main__": | |
| from argparse import ArgumentParser, RawTextHelpFormatter |
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 re | |
| from types import MappingProxyType | |
| __all__ = ['str2num'] | |
| NUMBase = MappingProxyType({ | |
| 'one': 1, | |
| 'two': 2, |
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
| ''' | |
| This module implements UFCS for Python. | |
| [Uniform Function Call Syntax (UFCS)](https://tour.dlang.org/tour/en/gems/uniform-function-call-syntax-ufcs) | |
| UFCS is a key feature of D and enables code reusability and scalability through well-defined encapsulation. | |
| UFCS allows any call to a free function fun(a) to be written as a member function call a.fun(). | |
| If a.fun() is seen by the compiler and the type doesn't have a member function called fun(), |
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
| #!/usr/bin/env python3 | |
| # coding: utf-8 | |
| "salttiger.com 文章采集" | |
| __version__ = (0, 0, 3) | |
| __author__ = "ChenyangGao <https://github.com/ChenyangGao>" | |
| __all__ = [ | |
| "get_archive_list", "get_archive_detail", "update_archives", "update_json_db", | |
| "update_sqlite_db", "sqlite_to_json", "json_to_sqlite" |
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
| #!/usr/bin/env python3 | |
| # encoding: utf-8 | |
| "libgen.rs 搜索信息罗列" | |
| __author__ = "ChenyangGao <https://chenyanggao.github.io>" | |
| __version__ = (0, 0, 1) | |
| __all__ = ["search", "info", "get_downlinks", "get_downlink_from_libgenli"] | |
| if __name__ == "__main__": |
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
| #!/usr/bin/env python3 | |
| # coding: utf-8 | |
| __author__ = "ChenyangGao <https://chenyanggao.github.io>" | |
| __all__ = ["video_iter"] | |
| __version__ = (0, 0, 1) | |
| if __name__ == "__main__": | |
| from argparse import ArgumentParser |
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
| #!/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/ |
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
| #? 设置代理 ip,请运行 proxy# 获取帮助信息 | |
| # AUTHOR='ChenyangGao <https://chenyanggao.github.io/>'' | |
| # VERSION=0.2 | |
| if [ -n "${MOD_PROXY_sourced+x}" ]; then | |
| return 0 | |
| fi | |
| # inetutils (apt) |
NewerOlder