Skip to content

Instantly share code, notes, and snippets.

@FaronBracy
FaronBracy / DotSettingsConverterTest.cs
Created March 26, 2019 15:04
Convert .dotsettings to .editorconfig
using System;
using System.Collections.Generic;
using System.Xml.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DotSettingsConverter
{
[TestClass]
public class DotSettingsConverterTest
{
@FaronBracy
FaronBracy / .editorconfig
Last active February 19, 2024 14:13
Editor config file for CSharp .cs files including Visual Studio and ReSharper custom attributes
#####################################################################################################
# 2019-01-15 Initial Creation
# 2019-04-01 Added ReSharper Settings
# 2019-05-16 Naming Rules Work With ReSharper
# 2019-07-09 Constant and Static Readonly Naming Rules
# 2022-09-16 New Settings for Visual Studio 2022
#####################################################################################################
# Based off of generic config from https://github.com/RehanSaeed/EditorConfig
# License MIT - https://github.com/RehanSaeed/EditorConfig/blob/master/LICENSE
#
@FaronBracy
FaronBracy / FlyCamera.cs
Created June 9, 2020 15:47 — forked from gunderson/FlyCamera.cs
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@FaronBracy
FaronBracy / Camera.cs
Created August 23, 2021 12:34
Camera with Pan and Zoom
using Microsoft.Xna.Framework;
using ZoomEngine.Animation;
namespace Game
{
public class Camera
{
private ClockManager _clockManager;
// position of the camera