This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Namespace = ( -> | |
| merge = (target, source) -> | |
| for key, val of source | |
| if source.hasOwnProperty key then target[key] = val | |
| target | |
| _assertValidFQN = (fqn) -> | |
| unless ///^[a-z0-9_.]+///.test fqn then throw 'invalid namespace' | |
| class Procedure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Namespace; | |
| Namespace = (function() { | |
| var NamespaceDefinition, NamespaceObject, NamespaceObjectFactory, Procedure, createNamespace, createProcedure, merge, _assertValidFQN; | |
| merge = function(target, source) { | |
| var key, val; | |
| for (key in source) { | |
| val = source[key]; | |
| target[key] = val; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Namespace('brook') | |
| .define (ns) -> | |
| VERSION = '0.01' | |
| class Promise | |
| constructor : (next) -> | |
| @next = next or (next, val) -> next(val) | |
| concat : (after) -> | |
| _before = @ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var __indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | |
| Namespace('brook').define(function(ns) { | |
| var Promise, VERSION, promise; | |
| VERSION = '0.01'; | |
| Promise = (function() { | |
| function Promise(next) { | |
| this.next = next || function(next, val) { | |
| return next(val); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Namespace('brook').define(function(ns){ | |
| var VERSION = "0.01"; | |
| var Promise = function(next){ | |
| this.next = next || function(next,val){ return next(val); }; | |
| }; | |
| (function(proto){ | |
| proto.concat = function(after){ | |
| var _before = this; | |
| var next = function(n,val){ | |
| return _before.subscribe( after.ready(n),val); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // TapCounterInstaller.cs | |
| using UnityEngine; | |
| using System; | |
| using UniRx; | |
| using Zenject; | |
| public class TapCounterInstaller : MonoInstaller<TapCounterInstaller> | |
| { | |
| public override void InstallBindings() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System; | |
| using UniRx; | |
| using Zenject; | |
| public class TapCounterInstaller : MonoInstaller<TapCounterInstaller> | |
| { | |
| public override void InstallBindings() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.UI; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| public class SampleBehaviour : MonoBehaviour | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class VRCCamController : MonoBehaviour | |
| { | |
| [SerializeField] | |
| private Sprite sprite; | |
| [SerializeField] | |
| [Range(.1f, 10f)] |
OlderNewer