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; | |
public struct EdgeInsets { | |
public float Top { get; } | |
public float Left { get; } | |
public float Bottom { get; } | |
public float Right { get; } | |
public EdgeInsets(float top, float left, float bottom, float right) { |
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 System; | |
namespace MyApplication { | |
public class TimeUtils { | |
private static DateTime unixEpoch = new DateTime(1970, 1, 1, 0, 0, 0, 0); | |
private TimeUtils() { | |
} |
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.Generic; | |
namespace MyApplication | |
{ | |
/// <summary> | |
/// JsonUtilityはルートが配列の場合は扱えないため、オブジェクトでラップするクラスです。 | |
/// | |
/// { "array": [ 指定した配列要素 ] } |
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
// | |
// IPAddress.h | |
// | |
// Created by Hituzi Ando on 2017/10/26. | |
// | |
#import <Foundation/Foundation.h> | |
NS_ASSUME_NONNULL_BEGIN |
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
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 | |
#endif |
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
/** | |
* jQuery.whenにQ.allのように配列でDeferredを渡す関数 | |
* | |
* @param deferredList Array of jQuery.Deferred object | |
* @returns jQuery.Promise object | |
*/ | |
function $all(deferredList) { | |
return $.when.apply(null, deferredList); | |
} |
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
/** | |
* @version 1.0.4 | |
* @require jQuery 1.0+ | |
*/ | |
(function ($) { | |
/** | |
* @param opts | |
* disable: trueならばスクロールを無効にする | |
* duration: 'fast','slow'またはミリ秒 | |
* offsetTop: ビューより上部の余白分 |
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
// info.plistの"View controller-based status bar appearance"をYESにする | |
// 各ViewControllerで下記のように実装する | |
// "View controller-based status bar appearance"をNOにした場合はinfo.plistの"Status bar style"が全ViewControllerに適用される | |
// "View controller-based status bar appearance"をinfo.plistに追加していない場合は変更は適用されない | |
- (void) viewDidLoad { | |
[super viewDidLoad]; | |
// 変更を通知 | |
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) { | |
[self setNeedsStatusBarAppearanceUpdate]; |
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
<select id="selXxx" onchange="onChange(this)"> | |
<option value="hoge" selected>hoge</option> | |
<option value="foo">foo</option> | |
<option value="bar">bar</option> | |
</select> | |
<script> | |
function onChange (selector) { | |
var val = selector.options[selector.selectedIndex].value; | |
if (val == "hoge") { |
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
* { | |
/* prevent callout to copy image, etc when tap to hold */ | |
-webkit-touch-callout: none; | |
/* prevent webkit from resizing text to fit */ | |
-webkit-text-size-adjust: none; | |
/* make transparent link selection, adjust last value opacity 0 to 1.0 */ | |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); | |
/* prevent copy paste, to allow, change 'none' to 'text' */ | |
-webkit-user-select: none; | |
} |
NewerOlder