ASCII art gallery
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
| # /// script | |
| # requires-python = ">=3.12" | |
| # dependencies = [ | |
| # "beautifulsoup4", | |
| # "markdownify", | |
| # "opencc-python-reimplemented", | |
| # "requests", | |
| # "wikipedia", | |
| # ] | |
| # /// |
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
| /* MaterialYou主题 CSS */ | |
| :root { | |
| /* MaterialYou基础尺寸 */ | |
| --material-line-width: 0.3px; | |
| --container-border-radius: 15px; | |
| --list-item-border-radius: 8px; | |
| /* 过渡时间 */ | |
| --duration-fast: 0.2s; | |
| --duration-normal: 0.3s; | |
| --easing-ease: ease; |
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 os | |
| import argparse | |
| def search_text_in_files(search_term, start_dir): | |
| """ | |
| 递归检索目录中的文本文件,查找特定文本内容。 | |
| :param search_term: 要查找的文本内容 | |
| :param start_dir: 开始搜索的目录 | |
| """ |
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
| @Slf4j | |
| @SpringBootApplication | |
| public class SpringApp { | |
| public static void main(String[] args) throws UnknownHostException { | |
| ConfigurableApplicationContext application = SpringApplication.run(App.class, args); | |
| Environment env = application.getEnvironment(); | |
| String ip = InetAddress.getLocalHost().getHostAddress(); | |
| String port = env.getProperty("server.port"); | |
| String path = env.getProperty("server.servlet.context-path"); | |
| if (!StringUtils.hasLength(path)) { |
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
| local autocmd = vim.api.nvim_create_autocmd | |
| -- nvim-tree 自动关闭 | |
| -- 定义是否为启动后的第一次 BufEnter 事件 | |
| local is_first_bufenter_after_start = true | |
| autocmd("BufEnter", { | |
| nested = true, | |
| group = 'myAutoGroup', | |
| callback = function() |
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
| # Configure ccache if available | |
| find_program(CCACHE_FOUND ccache) | |
| if (CCACHE_FOUND) | |
| set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) | |
| set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache) | |
| endif (CCACHE_FOUND) |