Skip to content

Instantly share code, notes, and snippets.

View AVatch's full-sized avatar
🦄
Making stuff

Adrian Vatchinsky AVatch

🦄
Making stuff
View GitHub Profile
@AVatch
AVatch / auth.ts
Created January 31, 2018 16:27
Google Analytics (Or any other analytics) + Angular / NGRX
/**
* src/effects/auth.ts
* Similiar pattern for all other Effects
*/
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/switchMap';
import 'rxjs/add/operator/catch';
import 'rxjs/add/operator/do';
@AVatch
AVatch / EventsHologram.cs
Created June 6, 2017 13:51
Holotoolkit Event Subscription Example
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using HoloToolkit.Unity.InputModule;
using System;
public class HologramManager : MonoBehaviour, IInputClickHandler, IFocusable
{
@AVatch
AVatch / AppManager.cs
Created June 5, 2017 14:02
Unity App Manager Singleton
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Linq;
using UnityEngine;
namespace Arlane
{
@AVatch
AVatch / sift.py
Created May 9, 2016 19:11
OpenCV SIFT
import cv2
import numpy as np
from matplotlib import pyplot as plt
# Import our game board
canvas = cv2.imread('./data/box_med.jpg')
# Import our piece (we are going to use a clump for now)
piece = cv2.imread('./data/piece_small.jpg')
# Pre-process the piece
@AVatch
AVatch / template_matching.py
Created May 9, 2016 19:01
OpenCV Template Matching
import cv2
import numpy as np
from matplotlib import pyplot as plt
# Load images
img = cv2.imread('image.jpg', 0)
template = cv2.imread('template.jpg', 0)
w, h = template.shape[::-1]
# Apply template matching