Skip to content

Instantly share code, notes, and snippets.

View ShirakawaYoshimaru's full-sized avatar

SLEKFjawefkjw ShirakawaYoshimaru

  • 東京あたり
View GitHub Profile
@ShirakawaYoshimaru
ShirakawaYoshimaru / PathMaker.cs
Last active February 6, 2018 04:42
選択したオブジェクトのPathをログに表示する Unity プチEditor拡張
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
/// <summary>
/// 選択している複数のObjectのパスをLogに表示させます。
/// SceneとProject両方に対応しています。
/// </summary>
public class PathMaker
{
@ShirakawaYoshimaru
ShirakawaYoshimaru / git-lesson.md
Created March 16, 2016 13:09 — forked from yatemmma/git-lesson.md
git初心者への道 - お仕事で困らないレベルまでググっとします。

git初心者への道

まずやってみよう - コミットする、ログを見る、差分を見る

初登場するコマンド: init, add, commit, log, config, status, diff

@ShirakawaYoshimaru
ShirakawaYoshimaru / init.sh
Created May 3, 2017 05:11
vagrantにphp7とapacheとcomposerを入れるbash
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
sudo yum install -y --enablerepo=remi,remi-php70 php php-devel php-mbstring php-pdo php-xml php-zip
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
@ShirakawaYoshimaru
ShirakawaYoshimaru / BridgeパターンBefore2
Last active June 11, 2016 07:13
実装クラスが増えると対応した機能クラスも増やす必要がある
using UnityEngine;
using UnityEngine.UI;
using System;
//使い方
public class TestScript : MonoBehaviour
{
void Start ()
{
new Human (new Speak ()).Hellow ();
using UnityEngine;
using System;
public class TestScript : MonoBehaviour
{
void Start ()
{
var bookShelf = new Iterator1.BookShelf ();
bookShelf.Add (new Book ("111"));
bookShelf.Add (new Book ("222"));
using UnityEngine;
using UnityEngine.UI;
using System;
public abstract class Factory
{
Action createEvent;
public void AddListenCreateEvent (Action action)
{
using UnityEngine;
using UnityEngine.UI;
using System;
public abstract class PlayerBase : MonoBehaviour
{
protected StateBase nowState;
public abstract void ModifyState (StateBase state);
using UnityEngine;
using UnityEngine.UI;
using System;
//使い方
public class TestScript : MonoBehaviour
{
void Start ()
{
new Human (new Speak ()).Hellow ();
using UnityEngine;
using UnityEngine.UI;
using System;
//使い方
public class TestScript : MonoBehaviour
{
void Start ()
{
new Human (new Speak ()).Hellow ();
using UnityEngine;
using UnityEngine.UI;
using System;
//使い方
public class TestScript : MonoBehaviour
{
void Start ()
{
Decoratable cake = new CreamDecorator (new ChocoDecorator (new CakeDecorator (new Cake ("スススススス"))));