Skip to content

Instantly share code, notes, and snippets.

View mattbenic's full-sized avatar

Matt Benic mattbenic

View GitHub Profile
@RichardBronosky
RichardBronosky / pep8_cheatsheet.py
Created December 27, 2015 06:25
PEP-8 cheatsheet
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""This module's docstring summary line.
This is a multi-line docstring. Paragraphs are separated with blank lines.
Lines conform to 79-column limit.
Module and packages names should be short, lower_case_with_underscores.
Notice that this in not PEP8-cheatsheet.py
@mattbenic
mattbenic / .gitignore
Last active April 9, 2022 21:08
Common .gitignore file for Unity 3D projects Originally based on Github's default Unity 3D .gitignore
# Unity automatically generated files/folders
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Uu]nityGenerated/
# Autogenerated VS/MD solution and project files
*.csproj
*.unityproj
*.sln
@bzgeb
bzgeb / TriggerContainerEditor.cs
Created September 28, 2012 14:52
Example Drag & Drop area in a custom inspector for the Unity editor
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor (typeof(TriggerContainer))]
public class TriggerContainerEditor : Editor
{
private SerializedObject obj;