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
#!/bin/bash | |
# 用法:./copy-with-so.sh 源文件 目标目录 sysroot | |
# 例如:./copy-with-so.sh /bin/ls /tmp | |
my_help(){ | |
echo "用法:./copy-with-so.sh 源文件 目标目录 sysroot" | |
} |
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
{ | |
// 使用 IntelliSense 了解相关属性。 | |
// 悬停以查看现有属性的描述。 | |
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "debug", | |
"type": "cppdbg", | |
"request": "launch", |
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
--- | |
Language: Cpp | |
# BasedOnStyle: LLVM | |
AccessModifierOffset: -2 | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveAssignments: false | |
AlignConsecutiveDeclarations: false | |
AlignEscapedNewlines: Right | |
AlignOperands: true | |
AlignTrailingComments: true |
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
string replace(const string& old_value, const string& new_value, const string& str) | |
{ | |
string ret = str; | |
replaceSrc(old_value, new_value, ret); | |
return ret; | |
} | |
inline void replaceSrc(const string& old_value, const string& new_value, string& str) | |
{ | |
while(true) { |
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
#pragma once | |
#include <map> | |
#include <functional> | |
namespace Utility | |
{ | |
namespace Private | |
{ | |
struct NullType |
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
#include <mutex> | |
#include <condition_variable> | |
#include <functional> | |
#include <queue> | |
#include <thread> | |
class fixed_thread_pool | |
{ | |
private: | |
struct 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
#include <iostream> | |
#include <vector> | |
#include <memory> | |
#include <cstdio> | |
#include <fstream> | |
#include <cassert> | |
#include <functional> | |
struct B { | |
virtual void bar() { std::cout << "B::bar\n"; } |
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
#include <opencv2/core.hpp> | |
#include <opencv2/highgui.hpp> | |
#include <opencv2/calib3d.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <opencv2/videoio.hpp> |
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
-- 上层文件 | |
add_syslinks("pthread","gxiapi", "yaml-cpp") | |
add_requires("opencv 3.4", {system = true}) | |
set_languages("cxx17") | |
add_cxxflags("-Wall -pedantic") | |
includes("Main") | |
includes("Share") | |
includes("Armor") | |
includes("Buff") |