Skip to content

Instantly share code, notes, and snippets.

View neogeek's full-sized avatar
👋
Open for work.

Scott Doxey neogeek

👋
Open for work.
View GitHub Profile
@neogeek
neogeek / README.md
Created February 14, 2022 15:26
Automatic Code Formatting in Rider

Automatic Code Formatting in Rider

.editorconfig

For this to work correctly across multiple computers and developers, each repo must have an .editorconfig file that determines what the code looks like when formatted. For an example, see the repo linked below.

https://github.com/neogeek/csharp_editorconfig

Context Menu Commands

const sampleColorFromVideo = (video, x, y) => {
const canvas = document.createElement('canvas');
const context = canvas.getContext('2d');
const width = video.clientWidth;
const height = video.clientHeight;
canvas.setAttribute('width', width);
canvas.setAttribute('height', height);
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
namespace LumberLogs
{
public class Logger : MonoBehaviour
{
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace CandyCoded
{
public class Form : MonoBehaviour
{
"name": "TestGistPackage"
}
using MidiJack;
using UnityEngine;
public class MidiInputController : MonoBehaviour
{
private void HandleMidiKnob(MidiChannel channel, int knobnumber, float knobvalue)
{
Debug.Log($"{channel}, {knobnumber}, {knobvalue}");
using UnityEngine;
using UnityEngine.U2D;
using UnityEngine.UI;
namespace SmoothieOperator
{
public class SpriteAtlasHelper : MonoBehaviour
{
@neogeek
neogeek / OculusSDKAutomation.cs
Last active September 14, 2022 07:47
Oculus SDK Unity Setup
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;
public static class OculusSDKAutomation
{
private static readonly GameObject playerControllerPrefab = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/Oculus/VR/Prefabs/OVRPlayerController.prefab");
private static readonly GameObject controllerPrefab = AssetDatabase.LoadAssetAtPath<GameObject>("Assets/Oculus/VR/Prefabs/OVRControllerPrefab.prefab");
using System.Linq;
using UnityEditor;
using UnityEngine;
public static class Unity2DComponents
{
[MenuItem("GameObject/2D Object/Box", false, 0)]
private static void Create2DCube()
{
{
"compare" : {
"201904141259063200" : {
"hands" : [ {
"cards" : [ {
"rank" : 9,
"suit" : 1,
"upcard" : false
}, {
"rank" : 3,