Skip to content

Instantly share code, notes, and snippets.

@rotorz
rotorz / rems.styl
Last active August 29, 2015 13:56 — forked from avilaj/rems.styl
Function for Stylus CSS pre-processor which takes 1 or more array elements - fixed array initialisation.
// License MIT
// Author: Jorge Avila <jorge.e.avila@gmail.com>
// Example:
// body
// -rem('margin', 10 20 30 40)
// -rem('font-size', 10)
basefont = 16px
-rem(property, sizes)
rems = ()
@rotorz
rotorz / AttachSurfacePrefabsOnly.cs
Created July 31, 2013 03:21
Custom editor object factory which only adds attachments to surface tiles when "Flag 1" is set.
using UnityEngine;
using UnityEditor;
using Rotorz.Tile;
using Rotorz.Tile.Editor;
[InitializeOnLoad]
public class AttachSurfacePrefabsOnly : IObjectFactory {
static AttachSurfacePrefabsOnly() {
@rotorz
rotorz / gist:5989403
Created July 13, 2013 04:23
Generic object pool for use with Google Dart
import 'dart:collection';
import 'poolable.dart';
class TestObject extends Poolable {
static TestObject creator() {
return new TestObject();
}
}