Skip to content

Instantly share code, notes, and snippets.

View samoatesgames's full-sized avatar

Sam Oates samoatesgames

View GitHub Profile
@samoatesgames
samoatesgames / Program.cs
Last active October 29, 2019 21:18
Benchmarking different ways of reading multiple floats from a binary byte array
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.IO;
using System.Text;
namespace BinaryWriterBench
{
public class BinaryReaderBench
{
@samoatesgames
samoatesgames / UnifyLineEndings.cs
Last active July 22, 2018 20:28
A script to unify the line endings of Unity3D scripts files
#if UNITY_EDITOR_WIN
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using UnityEngine;
public class UnifyLineEndings