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/nginx.pid;
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:TYPE=VALUE
# 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
https://blog.jayway.com/2015/03/21/a-not-very-short-introduction-to-docker/
Whats with Images and Containers
docker images
View CMakeLists.txt
cmake_minimum_required(VERSION 3.3)
project(CloudController_Cpp)
find_package(Protobuf REQUIRED)
set(PROTO_PATH ${CMAKE_SOURCE_DIR})
get_filename_component(PROTO_PATH ${PROTO_PATH} DIRECTORY)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(GENERATED_PROTOBUF_PATH "${CMAKE_SOURCE_DIR}/generated")
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 java.io.File
import akka.actor.{Actor, ActorRef, ActorSelection, ActorSystem, Props}
import com.typesafe.config.ConfigFactory
import org.slf4j.LoggerFactory
/**
* Created by acp on 25-08-2016.
View kdtree.py
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
View override_eq.py
# http://stackoverflow.com/questions/390250/elegant-ways-to-support-equivalence-equality-in-python-classes
# http://stackoverflow.com/questions/4352244/python-implementing-ne-operator-based-on-eq/30676267#30676267
class Test1(object):
"""
Proper way to override equality
"""
def __init__(self, str1, str2, num1):
self.str1 = str1
View gevent_based_queue.py
# Gevent Queue
from gevent import queue
import gevent
from enum import Enum
import time
import threading
class EventId(Enum):
event_added = 1
View bounding_box_simple.py
from __future__ import division
import numpy as np
RADIUS_OF_EARTH_IN_KM = 6371.01
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