Skip to content

Instantly share code, notes, and snippets.

View techgeek1's full-sized avatar

Austin Rife techgeek1

  • Bay Area, CA
View GitHub Profile
@techgeek1
techgeek1 / vector3.rs
Created March 28, 2018 23:38
Vector3 implementation in rust
use std::ops::*;
#[derive(Copy, Clone)]
struct Vector3 {
x: f32,
y: f32,
z: f32
}
#[allow(dead_code)]
@techgeek1
techgeek1 / CsprojPostProcessor.cs
Created March 24, 2018 18:23
Post processor for excluding shader files from the csproj unity 2018 generates
using SyntaxTree.VisualStudio.Unity.Bridge;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using UnityEditor;
using UnityEngine;
// Post processor for excluding shader files from the csproj unity 2018 generates
[InitializeOnLoad]
public class CsprojPostProcessor : MonoBehaviour {
using UnityEngine;
using UnityEngine.Networking;
using System;
using System.Collections.Generic;
namespace AlderAcres.Network {
/// <summary>
///
/// </summary>
/// <remarks>
@techgeek1
techgeek1 / ConcurrentQueue.cs
Last active September 10, 2015 23:47
ConcurrentQueue using locks for use in older .NET projects (like in Unity3D)
using System;
using System.Collections.Generic;
namespace KanameExtensions {
public class ConcurrentQueue<T> {
//private vars
private readonly object syncLock = new object();
private Queue<T> rqueue;
//constructors