Skip to content

Instantly share code, notes, and snippets.

View csukuangfj's full-sized avatar
👀
I may be slow to respond.

Fangjun Kuang csukuangfj

👀
I may be slow to respond.
  • Xiaomi Corporation
  • Peking
View GitHub Profile
@csukuangfj
csukuangfj / build.log
Created August 19, 2017 15:08 — forked from iley/build.log
OpenCV build log
macserver:build_device iley$ SDK_VERSION=4.3 ../opencv_cmake.sh device ../OpenCV-2.1.0
Starting cmake...
Target SDK = iPhoneOS
iOS SDK Version = 4.3
iOS Deployment Target = 3.0
OpenCV Root = ../OpenCV-2.1.0
OpenCV Install Prefix = /Users/iley/Sources/iphone_opencv_test/build_device/../opencv_device
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
HEAD is now at c48807c Merge pull request #9418 from borisfom:cuda9
-- The CXX compiler identification is GNU 4.8.4
-- The C compiler identification is GNU 4.8.4
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
@csukuangfj
csukuangfj / QGraphicsSceneTest.cpp
Last active April 9, 2025 10:20 — forked from benjbaron/QGraphicsSceneTest.cpp
Qt QGraphicsScene click, select, move, resize, delete QGraphicsItems
// Copyright 2017. All Rights Reserved.
// Author: [email protected] (Fangjun Kuang)
#include <QtGui>
#include <QGraphicsRectItem>
#include <QGraphicsView>
#include <QApplication>
#include <QGraphicsSceneMouseEvent>
class CustomItem : public QGraphicsEllipseItem
@csukuangfj
csukuangfj / project_1.md
Created October 17, 2017 10:41 — forked from anonymous/project_1.md
Project READMEs - 3D Reconstruction with Computer Vision

Project 1: Panorama stitching

Due: 23 Sept 2014, 11:59pm

In this project, you'll write software that stitches multiple images of a scene together into a panorama automatically. A panorama is a composite image that has a wider field of view than a single image, and can combine images taken at different times for interesting effects.

Your image stitcher will, at a minimum, do the following:

/**
* @brief compare the parsing time between yml file and hdf file for the SED model.
* @author Fangjun Kuang
* @date January, 2018
*/
#include <opencv2/core.hpp>
#include <opencv2/ximgproc.hpp>
#include <opencv2/hdf.hpp>
@csukuangfj
csukuangfj / ascii cube
Created January 21, 2018 21:16 — forked from Newbrict/ascii cube
an ASCII art Cube
cubes look like this:
e-------f
/| /|
/ | / |
a--|----b |
| g----|--h
| / | /
c-------d
@csukuangfj
csukuangfj / Kernel-driver-not-installed-virtualbox-linux-issue.md
Created March 23, 2018 10:04 — forked from diegopacheco/Kernel-driver-not-installed-virtualbox-linux-issue.md
VirtualBox Issue on 16.04: Kernel driver not installed (rc=-1908)
@csukuangfj
csukuangfj / ssh-config-port-forwarding.sh
Created April 20, 2018 10:22 — forked from vkhatri/ssh-config-port-forwarding.sh
Configure SSH Port Forwarding via .ssh/config
# Remote Gateway Node to Login to App Servers - 192.168.1.1
Host app_proxy1
Hostname 192.168.1.1
LocalForward 8080 192.168.1.100:8080
LocalForward 8081 192.168.1.101:8080
LocalForward 8082 192.168.1.102:8080
Host app_proxy2
Hostname 192.168.1.1
LocalForward 8090 192.168.1.100:8081
@csukuangfj
csukuangfj / docker-cleanup-resources.md
Created April 30, 2018 06:54 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@csukuangfj
csukuangfj / 00-install-intel-mkl-64bit
Created May 23, 2018 08:12 — forked from pachadotdev/00-install-intel-mkl-64bit
Install Intel MKL (64 bit) on Ubuntu 17.10
# Option 1: Use apt-get
# keys taken from https://software.intel.com/en-us/articles/installing-intel-free-libs-and-python-apt-repo
cd ~/GitHub/r-with-intel-mkl/
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB
sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list'
sudo apt-get update && sudo apt-get install intel-mkl-64bit