Skip to content

Instantly share code, notes, and snippets.

View MatthewMaker's full-sized avatar

Matt "Trip" Maker MatthewMaker

View GitHub Profile
@MatthewMaker
MatthewMaker / .hgignore
Created October 22, 2012 14:39 — forked from darktable/.hgignore
hg: Starter hgignore file for Unity3D projects
syntax: glob
.DS_Store
*.sln
*.userprefs
*.csproj
*.pidb
*.unitypackage
syntax: regexp
^Build/.*
using UnityEngine;
using System.Collections;
public class Floatate1 : MonoBehaviour {
/**************************************
* Copyright (c) 2012, Timothy Thomas *
* Some rights reserved. *
**************************************/
//converted to C# by Matt "Trip" Maker
using UnityEngine;
using System.Collections;
#if UNITY_EDITOR
using UnityEditor;
#endif
// adapted from http://wiki.unity3d.com/index.php/DrawArrow
public enum ArrowType
{
@MatthewMaker
MatthewMaker / GUISizer.cs
Created August 25, 2013 02:32
"Automagic GUI Scaling in Unity3D Step 1. Tell you team that everything must fit within 1920x1080 or 1024x768 or whatever resolution you like! Step 2. Surround all OnGUI method body code with methods BeginGUI and EndGUI from the below class. Step 3. Scaling across all resolutions... problem solved!" -- http://entitycrisis.blogspot.com/2010/11/au…
//from http://entitycrisis.blogspot.com/2010/11/automagic-gui-scaling-in-unity3d.html
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class GUISizer {
static float WIDTH = 1024;
static float HEIGHT = 768;
@MatthewMaker
MatthewMaker / .gitattributes
Last active February 7, 2026 02:33
Example .gitattributes file for use with repositories which contain cross-platform Unity3D projects
# Assumptions
#
# All filetypes (file suffixes) in everyone's local filesystems will be lowercased.
# Files with uppercased letters in the suffixes will be ignored by this config.
# If we wanted to support mixed-case suffixes, we'd need to adjust this file like this:
# *.jpg *.[jJ][pP][gG]
# But doing that is harder to read ...aaAaAnD could lead to its own problems.
# For later exploration: There might be some git-hook way to mandate this at the server.
#
@MatthewMaker
MatthewMaker / .gitignore
Last active May 6, 2022 23:56
Example .gitignore file for use with repositories which contain cross-platform Unity3D projects
# Created (partly) by http://www.gitignore.io
# other sources:
# http://www.gitignore.io
# http://www.yellosoft.us/git-unity
### MacOS ###
.DS_Store
.AppleDouble
.LSOverride
{"messages":[{"timestamp":1530330056433,"attachments":[],"source":"+18322338658","sourceDevice":1,"sent_at":1530330043588,"received_at":1530330056433,"conversationId":"+18322338658","type":"incoming","schemaVersion":7,"body":"Man landed on the moon. Y/N","contact":[],"decrypted_at":1530330056435,"errors":[],"flags":0,"hasAttachments":0,"quote":null,"id":"eae7c2bd-ea22-b9a6-665b-d174c35d8bc2"},{"timestamp":1530330094420,"attachments":[],"source":"+15126192891","sourceDevice":1,"sent_at":1530330089920,"received_at":1530330094420,"conversationId":"+18322338658","type":"outgoing","sent":true,"expirationStartTimestamp":1530330089920,"schemaVersion":7,"body":"Humans did","contact":[],"decrypted_at":1530330094423,"errors":[],"flags":0,"hasAttachments":0,"quote":null,"recipients":["+18322338658"],"id":"b7524992-dd38-e264-ac15-8af1c9f1bd2b","delivered_to":["+18322338658"],"delivered":1},{"timestamp":1530330227610,"attachments":[],"source":"+18322338658","sourceDevice":1,"sent_at":1530330221141,"received_at":153033022
@MatthewMaker
MatthewMaker / UnifyLineEndings.cs
Created July 22, 2018 20:28 — forked from samoatesgames/UnifyLineEndings.cs
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
// MIT License
// Modified from https://gist.github.com/mrwellmann/c9c6bc416143a58d734077ffe57179a3
using System;
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;
/// <summary>
/// This tool helps to identify and remove empty folders from your Unity 3D project.
# Dotfiles
Cross-platform dotfiles managed with [chezmoi](https://chezmoi.io) and secrets via 1Password.
## Fresh macOS Bootstrap
Paste this into Terminal on a new machine:
```bash
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"