This file contains 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 System.Collections; | |
using System.IO; | |
/// <summary> | |
/// Defalult WWW.LoadFromCacheOrDownload() can use only AssetBundle | |
/// this eneble chaching any file. | |
/// </summary> | |
public class WWWCache { |
This file contains 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.Collections; | |
// delegates | |
public enum UIPopupState { | |
SUBMIT, | |
CANCEL | |
} | |
public delegate void ClickDelegate(UIPopupState state); |
This file contains 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.Collections; | |
[AddComponentMenu("NGUI/Tween/Ex/Label Randamize")] | |
public class LabelRandamize : MonoBehaviour { | |
public UILabel label; | |
public bool autoDestroy = false; | |
const string randamText = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ11234567890"; | |
This file contains 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 UnityEditor; | |
using System.Collections; | |
/// <summary> | |
/// Editor Utility tool. | |
/// author koki ibukuro | |
/// </summary> | |
public class CreateTool : ScriptableObject { | |
This file contains 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 UnityEditor; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Model animation spliter. | |
/// by Koki Ibukuro @asus4 | |
/// </summary> | |
public class ModelAnimationSpliter : EditorWindow { | |
TextAsset csvAsset; |
This file contains 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
#!/bin/sh | |
mkdir out | |
for f in *.psd | |
do | |
echo ${f/psd/png} | |
# 1.trim | |
# 2.resize with in (512 x 512) | |
# 3 convert to png |
This file contains 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
# Check Xcode version | |
require_version="0710" | |
if [[ $XCODE_VERSION_ACTUAL != $require_version ]]; then | |
echo "error: Required Xcode $require_version (current $XCODE_VERSION_ACTUAL) to build ${PRODUCT_NAME}" | |
return -1 | |
fi |
This file contains 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
// | |
// ofxMackerel.cpp | |
// | |
// Copyright 2015 asus4 | |
// | |
// | |
#include <Poco/Net/HTTPClientSession.h> | |
#include <Poco/Net/HTTPSClientSession.h> | |
#include <Poco/Net/HTTPRequest.h> |
This file contains 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
Library | |
Temp | |
*.csproj | |
*.sln | |
*.pidb | |
*.userprefs | |
*.unityproj |
This file contains 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
/// <summary> | |
/// カレンダー単位の期間の差を返します | |
/// 実際の差ではなくて、2012/12/31と、2013/01/01の差は"1"になります。 | |
/// </summary> | |
/// <returns> | |
/// The Month difference. | |
/// </returns> | |
public static int CalendarPageDifference (DateTime old, DateTime now) | |
{ | |
int old_year = old.Year; |