View nginx.config
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/;
View CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: /media/alex/LENOVO/Coding/opencv/build2
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
View Docker Commands
Good Reference
Whats with Images and Containers
docker images
View CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
find_package(Protobuf REQUIRED)
get_filename_component(PROTO_PATH ${PROTO_PATH} DIRECTORY)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
View VideoTestHaar.cpp
#include "stdafx.h"
#include <iostream>
#include <time.h>
#include "opencv2/objdetect.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/cudaobjdetect.hpp"
#include "opencv2/cudaimgproc.hpp"
#include "opencv2/cudawarping.hpp"
View BootUp.scala
package run
import{Actor, ActorRef, ActorSelection, ActorSystem, Props}
import com.typesafe.config.ConfigFactory
import org.slf4j.LoggerFactory
* Created by acp on 25-08-2016.
from collections import namedtuple
from operator import itemgetter
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import host_subplot
fig =plt.figure(figsize=(10, 8), dpi=80)
ax = plt.gca()
def parse_tree(node,prev_node=None,label='Root'):
# Helper utility to display the KD tree graphically to understand the spatial split
class Test1(object):
Proper way to override equality
def __init__(self, str1, str2, num1):
self.str1 = str1
# Gevent Queue
from gevent import queue
import gevent
from enum import Enum
import time
import threading
class EventId(Enum):
event_added = 1
from __future__ import division
import numpy as np
def haversine(lat1, lon1, lat2, lon2):
Utility to calcutlate distance between two pointtodo explain regarding height
coverting from geodisc co-ordinate to cartestian gives errors when distances are further apart