Skip to content

Instantly share code, notes, and snippets.

@matrixcr
matrixcr / keyboardlistener.cs
Created October 9, 2022 06:00 — forked from Ciantic/keyboardlistener.cs
C# Keyboard listener
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Windows.Input;
using System.Windows.Threading;
using System.Collections.Generic;
namespace Ownskit.Utils
{
@matrixcr
matrixcr / OculusPlatformEntitlementCheck.cs
Created June 15, 2022 06:40 — forked from corycorvus/OculusPlatformEntitlementCheck.cs
Oculus Platform Entitlement Check Example
using UnityEngine;
using UnityEngine.SceneManagement;
using Oculus.Platform;
#if UNITY_4 || UNITY_5
using UnityEngine.Events;
#endif
/*
Step 1: Download & Install Oculus Platform SDK
Step 2: Update your App ID in the Editor
@matrixcr
matrixcr / Sphere.cpp
Created April 17, 2022 04:00 — forked from zwzmzd/Sphere.cpp
[OpenGL] An example to draw a sphere with vao and vbo
#include "sphere.h"
#include <vector>
#include <iostream>
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
Sphere::Sphere()
{
@matrixcr
matrixcr / ShutdownSteamVR.au3
Created October 10, 2017 07:53
Steamvr monitor start and stop automation
#include <Constants.au3>
Opt("TrayIconHide", 1)
Local $vrmonitor = WinActivate("[TITLE:SteamVR;CLASS:Qt5QWindowIcon]")
ControlClick($vrmonitor, "", 0, "left", 1, 241, 15)
;If ProcessWait("vrmonitor.exe", 3) = 0 Then ProcessClose("vrmonitor.exe")
;If ProcessWait("vrdashboard.exe", 3) = 0 Then ProcessClose("vrdashboard.exe")
;If ProcessWait("vrcompositor.exe", 3) = 0 Then ProcessClose("vrcompositor.exe")
;If ProcessWait("vrserver.exe", 3) = 0 Then ProcessClose("vrserver.exe")
@matrixcr
matrixcr / dl-frameworks.rst
Created March 3, 2016 13:09 — forked from bartvm/dl-frameworks.rst
A comparison of deep learning frameworks

A comparison of Theano with other deep learning frameworks, highlighting a series of low-level design choices in no particular order.

Overview

Symbolic: Theano, CGT; Automatic: Torch, MXNet

Symbolic and automatic differentiation are often confused or used interchangeably, although their implementations are significantly different.

@matrixcr
matrixcr / Move-WixPackageCache.ps1
Created October 7, 2015 10:41 — forked from heaths/Move-WixPackageCache.ps1
How to relocate the Package Cache
<#
This license governs use of the accompanying software. If you use the software, you
accept this license. If you do not accept the license, do not use the software.
1. Definitions
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the
same meaning here as under U.S. copyright law.
A "contribution" is the original software, or any additions or changes to the software.
A "contributor" is any person that distributes its contribution under this license.
"Licensed patents" are a contributor's patent claims that read directly on its contribution.