Skip to content

Instantly share code, notes, and snippets.

View chriskilding's full-sized avatar

Chris Kilding chriskilding

View GitHub Profile
@thbkrkr
thbkrkr / Makefile
Created April 1, 2015 14:16
Build, tag and push Docker image
ORG = krkr
NAME = blurb
SHA1 = $(shell git log -1 --pretty=oneline | cut -c-10)
BRANCH = $(shell git branch -a --contains $(SHA1) | egrep '(remotes/|\*)' | egrep -v "(HEAD|detached)" | head -1 | sed -e "s/\* //" -e "s/.*\///")
VERSION = $(BRANCH)-$(SHA1)
REGISTRY = registry.blurb.com
build:
docker build --rm -t $(ORG)/$(NAME):${VERSION} .
docker tag -f $(ORG)/$(NAME):${VERSION} $(ORG)/$(NAME):$(BRANCH)-latest
#pragma once
#pragma warning ( disable : 4819 )
#pragma warning ( disable : 4996 )
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/calib3d/calib3d.hpp>