This file contains 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
{% for category in site.categories %} | |
<h1><a name="{{ category[0] }}">{{ category[0] }}</a></h1> | |
{% for post in category[1] %} | |
<li> | |
<h3> | |
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a> | |
</h3> | |
</li> | |
{% endfor %} | |
{% endfor %} |
This file contains 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
SHELL := /bin/bash | |
CC = g++ | |
CFLAGS=-std=c++11 -Wall -Wno-overloaded-virtual -O2 `pkg-config --cflags opencv` | |
CXXFLAGS=$(CFLAGS) | |
LDFLAGS=`pkg-config --libs opencv` |
This file contains 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/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
using namespace cv; | |
int main() { | |
Mat img; | |
img = imread("dave.jpeg", -1); | |
Mat win = Mat::zeros(0, img.rows, CV_8UC3); |
This file contains 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
PKG_CONFIG_PATH := /usr/local/opt/qt5/lib/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/ | |
export PKG_CONFIG_PATH | |
SHELL := /bin/bash | |
CC = g++ | |
CFLAGS=-std=c++11 -Wall -Wno-overloaded-virtual -O2 `pkg-config --cflags opencv Qt5Core Qt5Concurrent` | |
CXXFLAGS=$(CFLAGS) | |
LDFLAGS=-lm -lopenbr `pkg-config --libs opencv Qt5Core Qt5Concurrent` |
This file contains 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
# Makefile: osx makefile for stasm | |
EXE=.bin | |
# Note: high_gui is needed for the apps but not for the Stasm library per se. | |
LIBRARIES=`pkg-config --libs opencv` | |
# -Wno-long-long disables the "long long warnings" for the OpenCV headers | |
# -Wno-unused-parameter allows virtual func defs that don't use all params |
This file contains 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/sh | |
# dependencies | |
echo "Installing dependencies via Homebrew (http://brew.sh)" | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew update | |
brew install gcc48 |
This file contains 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 <cv.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
using namespace cv; | |
int main(int argc, char **argv) | |
{ | |
if (argc != 3) { | |
printf("Use %s <output> <amount of frames>\n", argv[0]); | |
return -1; |
This file contains 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
require 'rake' | |
require 'rake/clean' | |
targetname = "a.out" | |
cc = "g++ -Wall -Wno-overloaded-virtual -std=c++11 -O2" | |
paths = "/usr/local/opt/opencv3/lib/pkgconfig/opencv.pc" | |
libs = `#{"pkg-config --libs " + paths}` | |
flags = `#{"pkg-config --cflags " + paths}` |
This file contains 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
"***************************************************************************** | |
"" NeoBundle core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif |
This file contains 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
" Using vimplug | |
" | |
" Run: | |
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" brew install clang-format | |
" | |
" Install the fonts: https://github.com/powerline/fonts my favourite is monofur | |
" | |
" Then, using this vimrc file, execute inside vim :PlugInstall | |
" color github and molokai available |
OlderNewer