- 博客(27)
- 资源 (3)
- 收藏
- 关注
原创 vscode 自用插件整理
vscode 自用插件整理Bracket Pair Colorizer 为代码中的括号添上一抹亮色C/C++ 和 C++ Intellisense 这两款插件可以使得C++的编写变得更加容易。具有强大的自动补全功能cmake 和 CMake Tools 这两款插件可以使得cmake的编写变得更加容易。具有强大的自动补全功能Draw.io Integration 流程图神器Remote - SSH 远程调试vscode-icons 图标颜色...
2020-09-24 10:27:00
248
转载 c++简单定时器
c++简单定时器本文转载自 https://blog.youkuaiyun.com/u012234115/article/details/89857431timer.hpp#ifndef _TIMER_H_#define _TIMER_H_#include <functional>#include <chrono>#include <thread>#include <atomic>#include <memory>#include &
2020-06-08 11:42:51
395
原创 json库 rapidjson的简单使用
json库 rapidjson的简单使用读取json文件到rapidjson格式#include "rapidjson/document.h" // rapidjson's DOM-style API#include "rapidjson/prettywriter.h" // for stringify JSONrapidjson::Document readJson(const char* jsonFile){ std::ifstream t; long long le
2020-05-21 11:27:41
602
原创 swig 的简单使用
swig/* File: copy2.i */%module copy2%{#define SWIG_FILE_WITH_INIT#define _CRT_SECURE_NO_WARNINGS#include "copy2.h"%}int file_copy(const wchar_t* srcPath, const wchar_t* dstPath);long long...
2020-04-02 09:47:39
549
原创 c中的变长参数
void error(const char * format, ...) { char temp[256] = {0}; va_list va; va_start(va, format); vsnprintf(temp, 256, format, va); va_end(va); spdlog::error(temp); }
2019-11-26 13:45:13
153
原创 rgb转换到yuv420p nv12 yuv422p(cuda版本)
//超清公式#define RGB2Y(R, G, B) ( 16 + 0.183f * (R) + 0.614f * (G) + 0.062f * (B) )#define RGB2U(R, G, B) ( 128 - 0.101f * (R) - 0.339f * (G) + 0.439f * (B) )#define RGB2V(R, G, B) ( 128 + 0.439f ...
2019-07-24 10:43:48
3032
3
原创 c++ 计算函数运行时间
#pragma once#include <iostream>#include <chrono>#include <thread>class Time_test{private: static int64_t __start; static int64_t __end;public: static void getdiffTime_ms...
2019-07-11 15:54:47
1144
原创 FindOPENCV.cmake
# - Try to find LIBOPENCV# Once done, this will define## LIBOPENCV_FOUND - system has LIBOPENCV# LIBOPENCV_INCLUDE_DIR - the LIBOPENCV include directories# LIBOPENCV_LIBRARIES - link these to use...
2019-07-09 13:53:28
1771
原创 RAW格式文件按转换为文本文件
#include <cstdio>#include <stdio.h>#include <string.h>#include <fstream>using namespace std;int g_width = 2448;int g_height = 2048;#define NSIZE 8void Bin2Text(cons...
2019-06-14 17:35:45
5882
原创 c++ 宽字符文件的拷贝
copy2.h#ifndef _COPY2_H_#define _COPY2_H_#include <iostream>#include <string>using namespace std;#define MAX_COPY_SIZE 4096 * 32extern "C"{ /* * file_copy: Îļþ¿½±´º¯Êý ...
2019-03-27 17:31:56
1827
原创 python 打包成可执行文件
***.spec文件# -*- mode: python -*-block_cipher = Nonea = Analysis(['start.py'], # starty为启动文件 pathex=['F:\\git\\test'], #python 项目路径 binaries=[], datas=[(...
2019-01-14 14:23:40
361
原创 Qt css模板
/* QMenuBar { background-color: #323a3d; color: rgb(238, 238, 238);} */QMainWindow { background-color: #222525;}QMenuBar, QStatusBar { background-color: rgb(255, 0, 0);}QMenuBar...
2018-12-29 17:45:09
1599
原创 maya python 的简单使用
maya python 的简单使用使用pycharm给玛雅写python里边含有玛雅命令自动提示的配置https://download.youkuaiyun.com/download/bigtail_cat/10543887 文件下载网址基本图形的创建# -*- coding: UTF-8 -*-import maya.cmds as cmdsif __name__ == '__main_...
2018-11-30 11:29:30
10233
1
原创 c++中QTreeView的使用
#include &lt;QtWidgets/QApplication&gt;#include &lt;QtWidgets&gt;int main(int argc, char *argv[]){ QApplication a(argc, argv); QTreeView treeView; QFileSystemModel model(NULL); model.setFilt...
2018-10-18 17:37:32
791
1
转载 在Windows上编译、应用glog
在Windows上编译、应用glog &amp;nbsp; &amp;nbsp; glog是google提供的一个开源的C++日志库。由于最新的glog源码工程中,已经移除了“.sln”文件,代之以“a CMake build system”,在Windows平台下应用最新的glog库,需要自行使用CMake来生成适用不同版本VS的...
2018-10-11 10:36:48
951
原创 python 中 logger的简单使用
python 中 logger的简单使用#!/usr/bin/env python# -*- coding: UTF-8 -*-import loggingimport sys, osimport winregkey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Windows\CurrentVer...
2018-10-09 16:32:30
5006
1
转载 pyqt中的流动布局
#!/usr/bin/env python# -*- coding: UTF-8 -*-from PyQt5.QtCore import QPoint, QRect, QSize, Qtfrom PyQt5.QtWidgets import (QApplication, QLayout, QPushButton, QSizePolicy, QWidget)class Window(Q...
2018-07-28 11:10:17
1402
2
原创 pyqt中QTreeView的简单使用
#!/usr/bin/env python# -*- coding:utf-8 -*-from PySide import QtGuifrom PySide import QtCoreimport sys, osclass TreeView(QtGui.QTreeView): def __init__(self, parent=None): super(Tr...
2018-07-23 18:34:39
13053
2
原创 window和linux下html调用本地可执行文件
html 打开本地可执行文件windows设置#coding=utf-8import _winregpath = u'C:\\FFM_FTP\\ffm_ftp.exe'#必须以管理员身份运行class createKey(): def __init__(self): key = _winreg.CreateKey(_winreg.HKEY_CLASS...
2018-06-29 16:52:35
4249
2
原创 python之 ftp客户端的上传与下载
#-*- coding:utf-8 -*-__author__ = 'call server'__appname__ = "ftp_client"__version__ = "1.0"import ftplibfrom socket import _GLOBAL_DEFAULT_TIMEOUTimport oshost = '127.0.0.1'username = 'bl'...
2018-06-22 11:54:45
681
原创 sublime的设置及使用
sublime安装 Package Control按下ctrl + `调出console粘贴以下代码到底部命令行并回车import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_...
2018-06-07 18:31:43
536
原创 使用pyqt实现记事本(未实现全部功能 但基本功能ok)
#conding=utf-8from PyQt5.QtWidgets import QWidget, QApplication, QColorDialog, QFontDialog, QTextEdit, QFileDialogfrom PyQt5.QtWidgets import QMainWindow, QMessageBox, QDialog, QLineEdit, QPushButt...
2018-06-07 17:01:07
1921
2
原创 python下的正则使用
正则表达式(python)正则表达式(python)正则语法匹配语法匹配实例贪婪 懒惰分组命名分组反向引用非捕获分组字符串分割字符串替换编译标志正则语法匹配语法匹配实例实例 描述[Pp]ython 匹配 &quot;Python&quot; 或 &quot;python&quot;rub[ye] 匹配 &quot
2018-05-25 19:19:51
310
原创 c++类模板实现的双向链表
c++类模板实现的双向链表myList.h#ifndef _MYLIST_H_#define _MYLIST_H_template <class T>class ListNode{public: ListNode* pHead = NULL; ListNode* pTail = NULL; T value; ...
2018-05-24 15:03:54
2762
原创 caffe在windows及linux上的安装(cpu)
caffecaffelinux CPU安装配置编译caffe 代码执行配置环境变量编译linux GPU安装配置windows CPUlinux CPU安装sudo git clone https://github.com/BVLC/caffe.gitsudo apt-get install build-essential...
2018-05-20 09:32:36
748
原创 python学习笔记
PythonPythonPython的初始配置windows1. python的多版本安装2. python常用第三方库的安装3. pycharm使用多版本python的配置4. 将py文件打成exe5.调用so常用函数或命令序列tuple(元组)list(列表)dict(字典)字符串常用命令文件操作正则修饰符常用函数...
2018-05-19 15:34:25
314
原创 Git常用命令
GITGIT初始配置提交回退版本查看提交记录分支比较文件差异 使用默认设置标签远程仓库分支更新分支推送分支合并将最近两次提交合并为一个提交 并强制提交到远程仓库将共享库添加到自己的仓库标签管理工作现场修改默认的文件对比 文件合并工具解决换行符问题修改默认编辑器开源中国git教程初始配置git --version ...
2018-05-19 15:29:02
238
python3-cookbook d代码
2018-08-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人