上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: ~/.bashrc # change cursor alias cl='echo -ne "\e[6 q"' alias cb='echo -ne "\e[2 q"' # set bash command line as vi mode # set -o vi # set CDPATH enviro 阅读全文
posted @ 2023-02-14 11:05 箫笛 阅读(53) 评论(0) 推荐(0)
摘要: Start run project when run script start-work.sh #!/usr/bin/bash # start work . ~/utils.sh # jump to work directory uiProject=/c/project/path/ if [ -d 阅读全文
posted @ 2023-02-13 15:30 箫笛 阅读(33) 评论(0) 推荐(0)
摘要: ** use grep command to find selected words ** `vim-grep/` - `plugin/` `grep.vim` ``` function! s:GrepOperator(type) let l:saved_unnamed_register = @@ 阅读全文
posted @ 2023-02-08 20:15 箫笛 阅读(42) 评论(0) 推荐(0)
摘要: # test.vim test.vim is to test vimscript, and as an sample for developing the vundle plugin. 开发并安装一个本地 vundle 插件 第一步:按照 vundle 插件要求的目录结构,创建插件的目录结构 vim 阅读全文
posted @ 2023-02-08 20:05 箫笛 阅读(152) 评论(0) 推荐(0)
摘要: ###1. Intro This plugin can help you quikly convert the nls copy to nls key, such as "this is a nls", can convert to below keys list as you wanto. "F_ 阅读全文
posted @ 2023-02-08 20:01 箫笛 阅读(34) 评论(0) 推荐(0)
摘要: 1. Introduction This is a simple tool for convert a long english sentence format to a nls key. 2. Install $ ./install.sh Open the git bash under the t 阅读全文
posted @ 2023-02-08 19:24 箫笛 阅读(37) 评论(0) 推荐(0)
摘要: 1. Chrome 扩展的结构组成 Chrome扩展的文件结构 - extension-smaple/ - manifest.json - service-worker.js - scripts/ - content-script.js - popup/ - popup.css - popup.js 阅读全文
posted @ 2023-01-30 19:15 箫笛 阅读(163) 评论(0) 推荐(0)
摘要: 1. 引擎的类型 传统型NFA POSIX NFA DFA (不支持忽略优先量词,捕获组和回朔) Javascript测试代码: 首先测试是否是传统型NFA /** 如果匹配结果是nfa则为传统型NFA **/ const reg = /nfa|nfa not/; const matches = r 阅读全文
posted @ 2022-12-05 17:24 箫笛 阅读(98) 评论(0) 推荐(0)
摘要: 1. match str.match(reg) 参数: 一个正则表达式对象,如果reg不是正则表达式对象,则会利用new RegExp(reg) 隐式转换。 返回值: 1. 正则表达式中如果有g标志,则将返回与完整正则表达式匹配的所有结果,但不会返回捕获组。 2. 正则表达式中如果没有使用g标志,则 阅读全文
posted @ 2022-11-29 17:03 箫笛 阅读(62) 评论(0) 推荐(0)
摘要: 1. 正则表达式对象 模式 / pattern /flags pattern 是任何简单或复杂的正则表达式,可以包含字符类,限定符,分组,向前查找以及反向引用。 flags 是匹配模式标明正则表达式的行为 g: 表示全局模式, 模式被应用于所有字符串,而非在发现第一个匹配项时立即停止。 i: 表示不 阅读全文
posted @ 2022-11-25 17:20 箫笛 阅读(48) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页