Skip to content

Instantly share code, notes, and snippets.

View OlegJakushkin's full-sized avatar
🤩

Oleg Jakushkin OlegJakushkin

🤩
View GitHub Profile
using UnityEngine;
using System.Collections;
public class Informer : MonoBehaviour {
// Use this for initialization
void Start () {
var parent = this.transform.parent;
while (parent != null) {
var controller = parent.GetComponent<Controller> ();
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace A
{
public class Inner
@OlegJakushkin
OlegJakushkin / Client.cpp
Last active May 6, 2017 05:59
ZMQ Chat Server and Client
// Install-Package boost -Version 1.55.0.16
// Install-Package boost_system-vc110 -Version 1.55.0.16
#include <zmq.hpp>
#include <sstream>
#include <iostream>
#include <thread>
#include <map>
#include <boost/serialization/serialization.hpp>
//Install-Package Microsoft.Azure.Management.Resources -Pre
//Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Pre
using System;
using System.IO;
using Microsoft.Azure.Management.Resources;
using Microsoft.Azure.Management.Resources.Models;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.Rest;
using Newtonsoft.Json;
// Install-Package boost -Version 1.55.0.16
// Install-Package boost_system-vc110 -Version 1.55.0.16
#include <sstream>
#include <iostream>
#include <thread>
#include <map>
#include <mutex>
#include <boost/serialization/serialization.hpp>
#include <vector>
#include <algorithm>
#include <random>
#include <cmath>
#include <functional>
#include <iostream>
#include <benchmark/benchmark.h>
#include <numeric>
#include <blond/trackers/sin.h>
using namespace std;
Benchmark Time CPU Iterations
---------------------------------------------------------------
0
0
0
BM_sin_default/2G 8033266544 ns 63660000000 ns 1
BM_sin_default/2G 8028728247 ns 63716000000 ns 1
BM_sin_default/2G 8061509609 ns 63952000000 ns 1
BM_sin_default/2G_mean 8041168133 ns 63776000000 ns 1
BM_sin_default/2G_stddev 14502431 ns 126533263 ns 0
# coding=UTF-8
import cv2
import numpy as np
from matplotlib import pyplot as plt
img1 = cv2.imread('hp-label.PNG', 0) # trainImage
img2 = cv2.imread('input.PNG', 0) # queryImage
orb = cv2.ORB_create(edgeThreshold=4, patchSize=16) # ORB
# http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_feature2d/py_fast/py_fast.html
#!/usr/bin/env python
#####################################################################
# This script presents different formats of the screen buffer.
# OpenCV is used here to display images, install it or remove any
# references to cv2
# Configuration is loaded from "../../examples/config/basic.cfg" file.
# <episodes> number of episodes are played.
# Random combination of buttons is chosen for every action.
# Game variables from state and last reward are printed.
#!/usr/bin/env python
#####################################################################
# python -m pip install --upgrade pip
# pip install -U numpy
#####################################################################
from __future__ import print_function
from random import choice
from vizdoom import *
import cv2