Skip to content

Instantly share code, notes, and snippets.

View trailblazing's full-sized avatar

Tuo Jung trailblazing

  • Detroit, MI
View GitHub Profile
@trailblazing
trailblazing / opencv-3-installation
Last active April 20, 2018 11:39 — forked from bikz05/opencv-3-installation
OpenCV 3 Installation
sudo apt-get update
sudo apt-get upgrade
# Added by me
sudo apt-get install freeglut3 freeglut3-dev libtbb2 libqt4-dev
# Copied from pyimagesearch.com
sudo apt-get install build-essential cmake git pkg-config
sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-ffmpeg3 libv4l-0
@trailblazing
trailblazing / collapse.css
Created October 5, 2016 20:01 — forked from dbieber/collapse.css
Collapsible Blog Posts
/* CSS for Collapsible Blog Posts */
[id^=_] {
display: none;
}
mpicxx -c -I<path/to/boost>/boost/include hello_world.cpp -o hello_world.o
mpicxx -L<path/to/boost>/boost/lib -o hello_world hello_world.o -lboost_mpi -lboost_serialization
mpirun -np 2 ./hello_world
mpirun -n 2 ./hello_world
~
Pulling a object out of a class is a trivial thing, but pushing it back though template parameters prevent it from generating a lot of garbage needs a lot.