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
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
public static class FirebaseDatabase
{
public static IEnumerator Send<T>(string firebaseUrl, T content)
{
{
"compare" : {
"201904141259063200" : {
"hands" : [ {
"cards" : [ {
"rank" : 9,
"suit" : 1,
"upcard" : false
}, {
"rank" : 3,
using System.Linq;
using UnityEditor;
using UnityEngine;
public static class Unity2DComponents
{
[MenuItem("GameObject/2D Object/Box", false, 0)]
private static void Create2DCube()
{
@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 UnityEngine;
using UnityEngine.U2D;
using UnityEngine.UI;
namespace SmoothieOperator
{
public class SpriteAtlasHelper : MonoBehaviour
{
using MidiJack;
using UnityEngine;
public class MidiInputController : MonoBehaviour
{
private void HandleMidiKnob(MidiChannel channel, int knobnumber, float knobvalue)
{
Debug.Log($"{channel}, {knobnumber}, {knobvalue}");
{
"name": "TestGistPackage"
}
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace CandyCoded
{
public class Form : MonoBehaviour
using System.Collections;
using UnityEngine;
using UnityEngine.Networking;
namespace LumberLogs
{
public class Logger : MonoBehaviour
{
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);