Skip to content

Instantly share code, notes, and snippets.

Avatar

The Stonefox thestonefox

View GitHub Profile
@thestonefox
thestonefox / thestonefox-vimrc
Last active May 29, 2019
Basic .vimrc with pathogen, solarized theme, nerdtree
View thestonefox-vimrc
execute pathogen#infect()
syntax on
set number
set expandtab
set tabstop=2
set background=dark
set t_Co=256
let g:solarized_termcolors=256
let g:solarized_termtrans=1
@thestonefox
thestonefox / ViveCursor.cs
Last active Jun 5, 2019
A basic implementation of a laser pointer for the HTC Vive controllers in Unity3D
View ViveCursor.cs
using UnityEngine;
using System.Collections;
public class ViveCursor : MonoBehaviour {
public enum AxisType
{
XAxis,
ZAxis
}
@thestonefox
thestonefox / docker-service-manager
Created Feb 21, 2014
Docker container management script to start, stop and restart containers from source
View docker-service-manager
#!/bin/bash
function start() {
docker build -rm -t myapp_image .
docker run -d -name myapp_container myapp_image
}
function stop() {
docker stop myapp_container && docker rm myapp_container
}
@thestonefox
thestonefox / PrecisionFollowPrimarySecondarySwapper.cs
Created May 24, 2022
Tilia Interactables Example of how to get two handed grabbing to work with a precision grabbed object so either hand can be holding it
View PrecisionFollowPrimarySecondarySwapper.cs
using System.Collections;
using Tilia.Interactions.Interactables.Interactables;
using Tilia.Interactions.Interactables.Interactables.Grab.Provider;
using UnityEngine;
using Zinnia.Data.Collection.Stack;
public class PrecisionFollowPrimarySecondarySwapper : MonoBehaviour
{
[SerializeField]
private InteractableFacade interactable;
@thestonefox
thestonefox / OrientationFollowPrimarySecondarySwapper.cs
Created May 24, 2022
Tilia Interactables Example of how to get two handed grabbing to work with an orientation grabbed object so either hand can be holding it
View OrientationFollowPrimarySecondarySwapper.cs
using System.Collections;
using Tilia.Interactions.Interactables.Interactables;
using Tilia.Interactions.Interactables.Interactables.Grab.Action;
using Tilia.Interactions.Interactables.Interactables.Grab.Provider;
using Tilia.Interactions.Interactables.Interactors;
using UnityEngine;
using Zinnia.Data.Collection.Stack;
public class OrientationFollowPrimarySecondarySwapper : MonoBehaviour
{