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 { |
| import { v4 as uuid } from 'uuid'; | |
| export function generateId() { | |
| return uuid(); | |
| } | |
| const v4 = new RegExp(/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i); | |
| console.log(generateId().match(v4)); | |
| //console.log(generateId().length) |
| #!/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) | |
| { |