Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
// Component does nothing; editor script does all the magic
public class SortingLayerExposed : MonoBehaviour { }
@marcinjackowiak
marcinjackowiak / read-more.html
Last active May 11, 2016 05:45
Basic "read more" functionality for a Backbone Collection rendered in an html table (read-only). Using Bootstrap to make it look nice.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!-- External dependencies -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.6/flatly/bootstrap.min.css">
@marcinjackowiak
marcinjackowiak / LuaCustomConverters.cs
Created November 4, 2017 00:22
Custom converters for Unity's Vector2 and Vector3 for Moonsharp Lua Interpreter
using UnityEngine;
using MoonSharp.Interpreter;
using System;
/// <summary>
/// These are custom converters for Vector2 and Vector3 structs.
///
/// Add the following call to your code:
/// LuaCustomConverters.RegisterAll();
///
Big O complexities for common methods of Java Collections and common sorting algorithms.
Complexity (Best to Worst)
===================================================================================================
O(1) < O(log n) < O(n) < O(n log n) < O(n^2) < O(2^n) < O(n!)
Collections
===================================================================================================