Skip to content

Instantly share code, notes, and snippets.

View cmpute's full-sized avatar
🏠
Working from home

Jacob Zhong cmpute

🏠
Working from home
View GitHub Profile
@cmpute
cmpute / PCL_props_generator.py
Created May 11, 2017 12:58
Generate VC++ Properties file (.prop) for PCL projects
import os
import os.path as op
# Paths can be user-defined
pcl_dir = os.environ["PCL_ROOT"]
pcl_ver = pcl_dir.split(' ')[-1]
vctool_ver = list(filter(lambda part: part.startswith('vc'),
os.listdir(op.join(pcl_dir, '3rdParty', 'Boost', 'lib'))[0].split('-')))[0] #vc140
openni_dir = op.sep.join(os.environ['OPENNI2_LIB64'].split(op.sep)[:-2])
@cmpute
cmpute / fastio.hpp
Last active April 28, 2025 06:31
Code Snippets for IO Bursting in OJ
/*
* OJ中加速IO常用的代码片段
* Author Jacob C
* THU_ID 2014010812
*/
//OJ中常用的头文件和预编译指令
#ifndef _OJ_
#define DEBUG
#endif