A simple stateless functional component that we want to test that it renders without propType warnings.
import React, { PropTypes } from 'react'
let VersionListItem = function ({ active, version }) {
return (
using System; | |
using System.Collections; | |
using UniRx; | |
using UnityEngine; | |
using System.Threading; | |
namespace UniRx { | |
public static partial class CustomObservable { |
#!/bin/bash -eu | |
# Quote a single- or multi-line string for use in git's aliases | |
# Copyright (c) 2016 Tom Hale under https://en.wikipedia.org/wiki/MIT_License | |
quote() { | |
printf %s "$1" | sed -r 's/(["\\])/\\\1/g'; | |
} | |
IFS=$(printf '\n') |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
using System.Text; | |
namespace MakeGist | |
{ | |
public class Gist |
using UnityEngine; | |
using System.Collections; | |
using System; | |
using UnityEngine.Events; | |
using UnityEngine.UI; | |
using System.Collections.Generic; | |
public class Pigeons : MonoBehaviour | |
{ | |
public class PigeonEvent<T> : UnityEvent<T>{} |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
[CustomPropertyDrawer(typeof(IntRangeAttribute))] | |
public class IntRangeDrawer : PropertyDrawer | |
{ | |
public override float GetPropertyHeight(SerializedProperty property, GUIContent label) | |
{ |
//... | |
public class MyScript : MonoBehaviour | |
{ | |
[FloatRange(-1f,1f)] //using this will make the randomModulator appear with double handles. | |
public FloatRange randomModulator; | |
using UnityEngine; | |
using System.Collections; | |
public static class TransformExtensions | |
{ | |
public static void SetLayer(this Transform trans, int layer) | |
{ | |
trans.gameObject.layer = layer; | |
foreach(Transform child in trans) | |
child.SetLayer( layer); |
/*** | |
* This script will anchor a GameObject to a relative screen position. | |
* This script is intended to be used with ViewportHandler.cs by Marcel Căşvan, available here: http://gamedev.stackexchange.com/a/89973/50623 | |
* It is also copied in this gist below. | |
* | |
* Note: For performance reasons it's currently assumed that the game resolution will not change after the game starts. | |
* You could not make this assumption by periodically calling UpdateAnchor() in the Update() function or a coroutine, but is left as an exercise to the reader. | |
*/ | |
/* The MIT License (MIT) |
using UnityEngine; | |
/* | |
* Most functions taken from Tween.js - Licensed under the MIT license | |
* at https://github.com/sole/tween.js | |
* Quadratic.Bezier by @fonserbc - Licensed under WTFPL license | |
*/ | |
public delegate float EasingFunction(float k); | |
public class Easing |