Skip to content

Instantly share code, notes, and snippets.

View yKimisaki's full-sized avatar

Yoshitaka Kimisaki yKimisaki

View GitHub Profile
using System;
namespace Tonari.Text
{
public class StringBuilder : IDisposable
{
private char[] _buffer;
private int _bufferLength;
private int _position;
using System.Collections.Generic;
using UnityEngine;
namespace Unity.Extensions
{
public static class GameObjectExtensions
{
public static IEnumerable<TComponent> SelectComponents<TComponent>(this IEnumerable<GameObject> source) where TComponent : Component
{
foreach (var go in source)
using System.Collections.Generic;
using System.Linq;
using Tonari.Text;
using UnityEngine;
namespace Tonari.UnityEngine
{
public abstract class TypedPlayerPrefs<TKey, TValue>
{
// TODO: JsonUtilityが配列に対応したら直す
using System;
using System.Collections.Generic;
using UniRx;
using UniRx.Operators;
namespace Tonari.UniRx
{
public static class WithHistoryExtensions
{
public static IObservable<WithHistoryObservable<T>.WithHistoryValue> WithHistory<T>(this IObservable<T> source, int maxCount)
using System;
namespace Tonari.Text
{
public static class MiniRegex
{
private const char any = '?';
private const char wild = '*';
private const char bracketStart = '[';
using System;
using System.Collections;
using System.Collections.Generic;
namespace Tonari.Linq
{
public static class Enumerable_ShrinkEx
{
public static IEnumerable<TSource[]> Shrink<TSource>(this IEnumerable<TSource> source)
{
using System;
using Unity.Collections;
namespace Tonari.Text
{
public class UnityStringBuilder : IDisposable
{
private NativeArray<char> _buffer;
private int _bufferLength;
private int _position;
using System;
using System.Collections.Generic;
using System.Linq;
using UniRx;
namespace Tonari.UniRx
{
public class ContinuousObservableQueue<T>
{
private Subject<Unit> _onAgitate;
/*
MIT License
Copyright (c) 2019 Yoshitaka Kimisaki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
/*
MIT License
Copyright (c) 2019 Yoshitaka Kimisaki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is