插件
Jenkins 插件开发
· ☕ 4 分钟
使用 Jenkins 总是离不开各种各样的插件,为了更好的实践 DevOps ,我们也应该具备开发插件的能力,使整个流程都能够在 Jenkins 中汇合。 1. Jenkins 插件 1.1 插件的生态 Jenkins 前身 Hudson 始于 2004 ,历经 16 年,依然作为主流的 CI/CD 引擎。除了,Jenkins 提供了 Master-Agent 分布式构建、Pipeline 编排的功

VS Code 无法下载 Go 插件的工具包
· ☕ 1 分钟
VS Code 安装 Go 插件之后,打开 Go 项目时,编辑器会提示安装工具包。 但是 golang.org 无法直接访问,我们需要将包手动下载到 GOPATH 目录,进行安装。 创建包目录 1 2 cd $GOPATH mkdir -p src/golang.org/x 下载包 1 2 3 cd src/golang.org/x git clone https://github.com/golang/tools.git git clone https://github.com/golang/lint.git 安装包 1 2 go get golang.org/x/tools/... go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.27.0

Vim 必备插件
· ☕ 2 分钟
1. nerdtree 生成文件目录树 1 2 " 文件目录树 Plugin 'scrooloose/nerdtree' 1 2 3 4 5 6 7 8 9 10 11 12 13 "===================================================== "" NERDTree 配置 "===================================================== let NERDTreeChDirMode=1 "显示书签" let NERDTreeShowBookmarks=1 "设置忽略文件类型" let NERDTreeIgnore=['\~$', '\.pyc$', '\.swp$','\.pyo$', '__pycache__$'] "窗口大小" let NERDTreeWinSize=40 autocmd VimEnter * if !argc() | NERDTree | endif " Load NERDTree only if vim is run without arguments "按

jQuery插件开发
· ☕ 2 分钟
1. jQuery特征 jQuery消除了浏览器的兼容问题 遍历DOM树、选择元素 大量的插件库 工具函数库,$.type()、$.extent()等 jQuery的核心函数,通常指的是一个工厂对象,即jQuery()函数,或者更为常用的别名$()函数。