Skip to content

Instantly share code, notes, and snippets.

View avyavya's full-sized avatar
💭
😇

ぁ^"^" avyavya

💭
😇
View GitHub Profile
@kanitaoru
kanitaoru / AutoAssemblyDefiner.cs
Created January 31, 2018 12:21
AssemblyDefinitionファイルをEditorディレクトリなどに追加していくのが面倒なので、右クリックから指定したディレクトリ以下に勝手に追加するスクリプトを書いた
using System.IO;
using System.Linq;
using UnityEngine;
using UnityEditor;
/// AssemblyDefinitionファイルを指定ディレクトリ以下に自動生成します。
/// Editor, Pluginディレクトリはそれぞれ別Assemblyになるように追加でDefinitionファイルを生成します。
/// 依存関係の構築が細かく必要な場合は、生成後に手作業で修正してください。
public static class AutoAssemblyDefiner
@tmr111116
tmr111116 / NestCoroutine.cs
Created March 22, 2017 12:25
ネストしたコルーチンを止めてみる。
using System.Collections;
using UnityEngine;
public class NestCoroutine : MonoBehaviour
{
private IEnumerator _coroutine;
private int _count;
private int Count
{
get
@AArnott
AArnott / StaticFuncWithArgExaminer.cs
Created August 21, 2014 21:21
Creating a static method that accepts a first argument supplied by the delegate.
namespace ILExaminer
{
using System;
static class Program
{
internal static Func<T> AsFunc<T>(this T value)
where T : class
{
return new Func<T>(value.Return);
@0xced
0xced / NSData+CommonDigest.h
Created May 23, 2011 09:00
NSData+CommonDigest: The most elegant NSData category for cryptographic hash functions
/*
Licensed under the MIT License
Copyright (c) 2011 Cédric Luthi
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