This file contains hidden or 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 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> (); |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace A | |
{ | |
public class Inner |
This file contains hidden or 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
// 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> |
This file contains hidden or 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
//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; |
This file contains hidden or 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
// 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> |
This file contains hidden or 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 <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; |
This file contains hidden or 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
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 |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
#!/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. |
This file contains hidden or 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
#!/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 |