coc
vim coc.nvim安装及配置c,c++补全
在安装之前需要安装`npm` `yarn` `node.js` ```less # 这里以ubuntu示例 sudo apt install clang # 如果是c,c++补全需要安装 # 安装npm sudo apt-get install npm # 安装yarn sudo npm insta ......
coc仓库--ocr相关
```c++ void ocr_myjinbi(tesseract::TessBaseAPI *chi_api, cv::Mat *mat_srcp, int *myjinbi) { cv::Mat mat2(*mat_srcp, cv::Rect(1577, 37, 290, 60)); mat2 ......
coc仓库--checkIsHome
```c++ bool checkIsHome(const std::string *ADB_IP, cv::Mat *mat, fastdeploy::vision::detection::YOLOv5 *homemodelPoint) { screenShot(ADB_IP, mat); cv: ......
coc仓库--deviceINFO类
```c++ class deviceINFO { /* data */ // adbip // touch stream // mat // model指针 public: std::string ADB_IP; FILE *touchFile; cv::Mat *mat; fastdeploy: ......
coc仓库--pix2mat
```c++ Pix *mat8ToPix(cv::Mat *mat8) { Pix *pixd = pixCreate(mat8->size().width, mat8->size().height, 8); for(int y=0; yrows; y++) { for(int x=0; xcol ......
coc仓库--fork子进程
## fork子进程 ### 原函数 ```c++ void forktest(int *i, pid_t parentid) { tesseract::TessBaseAPI *chi_api = new tesseract::TessBaseAPI(); if (chi_api->Init("/ ......
coc仓库--时间控制相关函数
## 时间控制相关函数 一些需要备注的网站: https://www.cnblogs.com/terrasse/p/fast-adb.html https://developer.android.google.cn/ndk/downloads?spm=a2c6h.12873639.article-d ......
coc仓库--minitouch控制函数封装
## minitouch控制函数封装 minitouch的github地址: ### 1.原函数 ```c++ void click(FILE *wirteFile, const std::string *ADB_IP, int x, int y) { std::string s = "d 0 " ......
coc仓库--minicap截图函数
## minicap截图 ### 1.原函数 ```c++ void screenShot(const std::string *ADB_IP, cv::Mat *mat) { // 首先,运行runShellAndReturn获取file指针 std::string cmd = "adb -s " ......
coc仓库--从内存中读取图像
## 从内存中读取图像 ### 1.源码 ```c++ void createMatFromMem(FILE *file, cv::Mat *mat) { uchar *mem_pic = new uchar[6268932 / sizeof(uchar)]; long size = 0; frea ......
coc仓库--popen命令的封装
## popen命令的封装 ### 1.源码 ```c++ int runShellNoReturn(const char *cmd, const char *mode) { FILE *file = popen(cmd, mode); if (file == NULL) { return 1; } ......
coc-settings中设置自定义头文件路径
具体方案例如 { "suggest.noselect": true, "languageserver": { "ccls": { "command": "ccls", "filetypes": ["cc", "c", "cpp", "cuda"], "rootPatterns": [".tasks" ......
nvim-treesitter coc.nvim
PS C:\Users\dev\AppData\Local\nvim-data\plugged\nvim-treesitter\parser> lsd bash.so cpp.so dockerfile.so html.so latex.so ninja.so rust. ......
mingw64 + nvim + coc.nvim + nvim-dap : C++ windows - 04
4.1 init.vim 将 init.vim 放置到下面 :echo stdpath('config') ~\AppData\Local\nvim 4.2 plug https://github.com/junegunn/vim-plug 将 plug.vim 放置到下面 ~\AppData\Lo ......
mingw64 + nvim + coc.nvim + nvim-dap : C++ windows - 05
PS C:\Users\dev\Desktop\cpp> cd .\build\ PS C:\Users\dev\Desktop\cpp\build> cmake .. -DCMAKE_BUILD_TYPE=Debug -- Building for: Ninja -- The C compiler ......
mingw64 + nvim + coc.nvim + nvim-dap : C++ windows - 01
目标 用做C++编译器 尽量不要扩展其它功能 python 是避免不了,所以才安装的。 1.1 下载安装 https://mirror.tuna.tsinghua.edu.cn/msys2/distrib/msys2-x86_64-latest.exe 安装路径: C:\gnu\msys64 1.2 ......
mingw64 + nvim + coc.nvim + nvim-dap : C++ windows - 02
2.1 命令行工具 https://github.com/sharkdp/fd https://github.com/junegunn/fzf https://github.com/BurntSushi/ripgrep https://github.com/tree-sitter/tree-sitt ......
mingw64 + nvim + coc.nvim + nvim-dap : C++ windows - 03
3.1 ccls https://github.com/MaskRay/ccls/wiki/Build 在msys中: pacman -S --noconfirm mingw-w64-x86_64-clang mingw-w64-x86_64-clang-tools-extra mingw64/mi ......