Skip to content

Instantly share code, notes, and snippets.

View NERanger's full-sized avatar
😶‍🌫️
Exploring

Yonglin JING NERanger

😶‍🌫️
Exploring
  • ISEE@SUSTech
  • Shenzhen, China
View GitHub Profile
@yoggy
yoggy / SerialPort.cpp
Created August 11, 2012 10:58
SerialPort class sample using boost::asio::serial_port
#include "StdAfx.h"
#include <Setupapi.h>
#pragma comment(lib, "Setupapi.lib")
#include "SerialPort.h"
SerialPort::SerialPort(void) : end_of_line_char_('\n')
{
}
@npezolano
npezolano / gist:5477576
Last active March 7, 2024 06:46
Changing the thread name on C++11
#include <thread>
#include <iostream>
#include <pthread.h>
using namespace std;
void foo()
{
string s = "thread1";
char name[16];
@idelsink
idelsink / .clang-format
Created March 7, 2016 22:03
Clang format file.
# clang-format
# Made by: Ingmar Delsink
# idelsink.com
# See http://clang.llvm.org/docs/ClangFormatStyleOptions.html
# Tested with: clang-format version 3.7.1
# General
#########
# The style used for all options not specifically set in the configuration.
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active November 25, 2023 22:29
First Samplle for OpenCV with ImGui
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
find_package( Git )
execute_process(
COMMAND ${GIT_EXECUTABLE} clone "https://github.com/ocornut/imgui.git" -b v1.72b
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
@Jongbhin
Jongbhin / check_cuda_cudnn.md
Last active July 13, 2024 16:04
[Cuda cudnn version check] #cuda #cudnn #nvidia

To check nvidia driver

modinfo nvidia

To check cuda version

cat /usr/local/cuda/version.txt