[BRIEF DESCRIPTION OF THE DISCORD SERVER AND ITS PURPOSE]
The current admins are:
- [NAMES]
using UnityEngine; | |
using UnityEditor; | |
using System.Linq; | |
using System; | |
namespace Feed { | |
public static class ObjectHelpers { | |
[MenuItem("Feed/Objects/Group parent position %g")] | |
public static void GroupSelected() { | |
if (!SelectedSiblings(out var selected)) { |
// Adapted from | |
// https://www.3delement.com/?p=586 | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using System.IO; | |
using Cybermonk; | |
class AssemblyDefinitionType // type used to load the .asmdef as json |
#!/usr/bin/env bash | |
# -- Set debug flags -- | |
set -e | |
# -- Utility -- | |
# see: https://stackoverflow.com/questions/2990414/echo-that-outputs-to-stderr#comment50764513_23550347 | |
errcho(){ >&2 echo $@; } |
public interface IPoolStrategy<I> | |
{ | |
void ActivateInstance(I instance); | |
void DeactivateInstance(I instance); | |
I Instantitate(); | |
} | |
public class ToggleActivePoolStrategy<C> : IPoolStrategy<C> where C : Component | |
{ | |
public C Instantiate() |
{PropTypes} = React | |
Option = React.createClass | |
displayName: 'SelectDropdown.Option' | |
propTypes: | |
selectedContent: PropTypes.node.isRequired | |
value: PropTypes.any.isRequired | |
children: PropTypes.arrayOf(PropTypes.node).isRequired | |
select: PropTypes.func | |
isSelected: PropTypes.bool |
function Irritating() { | |
return function() { | |
return function() { | |
return function() { | |
this.name = 'thing'; | |
} | |
} | |
} | |
} |
// -- ChainFactory | |
// ChainFactory generates command chains that inherit from its static interface. | |
// Any call to `chain` will either create a new chain, or continue an existing | |
// one. | |
// | |
// The rule here is that every chainable method calls `chain` internally | |
// to get an instance of "itself". This ensure that it will make sense when | |
// bound to the ChainFactory constructor, and also when it's intantiated. When | |
// instantiated `chainInstance.chain` is overridden to return itself. |
Promise = require 'bluebird' | |
defaultPageSize = 20 | |
paginate = (knex) -> (query, paginationOptions, options) -> | |
if query.fetchAll? | |
model = query | |
query = model.query() |