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.Generic; | |
/// <summary> | |
/// Simple service manager. Allows global access to a single instance of any class. | |
/// Copyright (c) 2014-2017 Eliot Lash | |
/// </summary> | |
public class Services | |
{ | |
//Statics |
// https://github.com/realm/realm-js/issues/370#issuecomment-270849466 | |
export default class Realm { | |
constructor(params) { | |
this.schema = {}; | |
this.callbackList = []; | |
this.data = {}; | |
this.schemaCallbackList = {}; | |
params.schema.forEach((schema) => { | |
this.data[schema.name] = {}; | |
}); |
#!/usr/bin/python | |
import os, sys, zipfile, tempfile | |
# wadls (pronounced "waddles", thx joshthenesnerd) - list all maps in a wad/zip/pk3 | |
# requires omgifol module, set path to it here or in env variable | |
OMG_PATH = os.environ.get('OMG_PATH', None) or '/home/jpl/projects/wadsmoosh' | |
sys.path.append(OMG_PATH) | |
import omg |
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; | |