If you don't use idea, it's hard to maintain the same code style with your colleagues. This script solves this problem, it uses idea cli and the code style XML of your project to format your code.
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
| // ==UserScript== | |
| // @name 划词高亮页面内相同文字 | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2.1 | |
| // @description 当在网页上选中一段文字后,自动高亮所有其他相同文字。点击或选择新内容后自动清除旧高亮。当选中的文本是在输入框或可编辑区域内的时候,不会触发高亮。 | |
| // @author lxl66566 (Gemini 2.5 pro) | |
| // @match *://*/* | |
| // @grant GM_addStyle | |
| // @license MIT | |
| // ==/UserScript== |
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 http.server | |
| import os | |
| import re | |
| import socketserver | |
| PORT = 9000 | |
| UPLOAD_DIR = "./" | |
| # 一个简单的辅助函数,用于解析 multipart/form-data 的头部 |
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
| # :schema https://docs.jj-vcs.dev/latest/config-schema.json | |
| # some contents are from https://gist.github.com/thoughtpolice/8f2fd36ae17cd11b8e7bd93a70e31ad6 | |
| [user] | |
| name = "lxl66566" | |
| email = "lxl66566@gmail.com" | |
| [ui] | |
| # 当只输入 `jj` 时,默认执行的命令设为 `jj log` (查看日志) | |
| default-command = "log" |
no more _2 _3 in your flake.lock.
usage:
cat flake.lock | python nixfollows.pyOlderNewer