Skip to content

Instantly share code, notes, and snippets.

@qxxxb
qxxxb / GazeRays.cs
Last active October 24, 2022 02:24
Render gaze rays for each eye on the HTC Vive Pro Eye.
using System.Runtime.InteropServices;
using UnityEngine;
using ViveSR.anipal.Eye;
public class GazeRays : MonoBehaviour
{
private static EyeData eyeData = new EyeData();
private bool eye_callback_registered = false;
// Render gaze rays.
import pwn
from Crypto.Cipher import AES
import Crypto.Util.number as cun
import Crypto.Util.Padding as cup
from pprint import pprint
import os
import base64
if pwn.args.DEBUG:
pwn.context.log_level = "debug"
@qxxxb
qxxxb / Reset.cs
Last active February 18, 2020 03:36
Reset entities
using GameProject.ComponentEnums;
namespace GameProject.Command
{
public class Reset : ICommmand
{
Game1 game;
public Reset(Game1 game)
{
this.game = game;
type
Foo = object of RootObj
Bar = object of Foo
Baz = object of Foo
proc castMaybe(foo: var Foo) =
if foo of Bar:
foo = Baz(foo)
var b: Foo