2018-05-01から1ヶ月間の記事一覧

Sourcetree ブランチのマージと分岐の表示

適当適当にコミット ブランチを作成し、変更をコミット 反映したいブランチ(master)に切り替えて、 ブランチ1の"seccond commit"部分でmergeを選択 ファストフォワード可能でも新たなコミットを作成する にチェックを入れてマージ 不要になったブランチ1を削…

C# ListとDictionaryの中身表示

C#

class TestData { Dictionary<int, Dictionary<int, string>> data5 = new Dictionary<int,Dictionary<int, string>> { { 1, new Dictionary<int, string> { {10, "aiueo" } } }, { 2, new Dictionary<int, string> { {20, "aaaaa" } } }, { 3, new Dictionary<int, string> { {30, "10000" } } }, }; Dictionary<int, int>…</int,></int,></int,></int,></int,dictionary<int,></int,>

黒色の頂点から傾きを取得し、元の位置に戻す。

#target photoshop preferences.rulerUnits = Units.PIXELS; function cTID(s) { return app.charIDToTypeID(s); } function sTID(s) { return app.stringIDToTypeID(s); } function RGBc(r, g, b) { var color = new ActionDescriptor(); color.putDouble(c…

python2.7 ファイル/ディレクトリ操作を検索するのがめんどくさくなったので、モジュールにしてまとめてみた

FileSystemモジュール fs.py import os import subprocess import glob import shutil import sys def join(dir, *file): return os.path.join(dir, *file) def pathExist(path): return os.path.exists(path) def isWildCard(path): return path.find("*") …

Unity プラットフォームごとにシンボルを定義する

SymbolScriptable.cs using UnityEngine; using UnityEditor; using System.Collections; using System.Collections.Generic; using System.IO; using System; using System.Linq; public class SymbolScriptable : ScriptableObject { [System.Serializable…