Skip to content

Instantly share code, notes, and snippets.

@Feddas
Feddas / AlignToVrNode
Last active March 23, 2018 02:40
Get the tracking spaces origin position and rotation
using UnityEngine;
using UnityEngine.VR;
public class AlignToVrNode : MonoBehaviour
{
public VRNode VrNode = VRNode.RightHand;
void Awake()
{
//If VR isn't enabled, don't try to track this object
@Feddas
Feddas / EliteDangerousKeyBindings.md
Last active January 29, 2024 16:22
Elite:Dangerous Key Bindings

How to make key bindings

As described in this reddit post, you can add multiple custom binds by copying and renaming the file at:

C:\Users\[your username]\AppData\Local\Frontier Developments\Elite Dangerous\Options\Bindings\Customs.binds

Clutches are holding one button then pressing another, like Ctrl+S. They're great for adding more bindings to the same number of buttons. Here's more details: http://www.reddit.com/r/EliteDangerous/comments/2y7tjv/option_to_bind_button_to_multiple_functions/

My Keybinds

Everything below is the custom setup I use. It's based off of the "Control pad with yaw" control scheme. I tried to make clutches that complimented the non-clutched version of the button. Here are the differences from the "Control pad with yaw" control scheme.

@Feddas
Feddas / CypherLiteral.cs
Last active August 29, 2015 14:23 — forked from WilliamHester/TwoHundred.java
If A=1, B=2, C=3, etc., then T+W+O+H+U+N+D+R+E+D+A+N+D+F+I+F+T+Y+N+I+N+E = 259
/// <summary>
/// brute force solution for http://www.reddit.com/r/Showerthoughts/comments/3a3xzw/if_a1_b2_c3_etc_then_twohundredandfiftynine_259/
/// Interaction logic for CypherLiteral.xaml
/// </summary>
public partial class CypherLiteral : UserControl
{
public readonly String[] ONES = new String[]{"",
"ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX",
"SEVEN", "EIGHT", "NINE"};
<Window x:Class="ProjectName.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:viewmodel="clr-namespace:ProjectName.ViewModels"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<!-- This creates an instance of the TestViewModel held in the ProjectName.ViewModels namespace -->
<viewmodel:TestViewModel x:Key="TestViewModel" />
</Window.Resources>