-
InterfaceBuilder3
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
"com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB"
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
// Unlit texture shader which casts shadow on Forward/Defered | |
Shader "Unlit/Texture CastShadow" { | |
Properties { | |
_MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags {"Queue"="Geometry" } | |
LOD 100 |
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
description=360(3840x1920) | |
frame_rate_num=60000 | |
frame_rate_den=1001 | |
width=3840 | |
height=1920 | |
progressive=1 | |
sample_aspect_num=1 | |
sample_aspect_den=1 | |
display_aspect_num=2 | |
display_aspect_den=1 |
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
import UIKit | |
class Contents { | |
enum Section: Int { | |
case Top = 0 | |
case Contents = 1 | |
case Notes = 2 | |
} | |
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
// Xcode 6.0.1 | |
class MyInitViewController: UIViewController { | |
override init() { | |
// init parameters here. | |
super.init() | |
} |
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
// Euclidean algorithm for GCD | |
func euclid( a:Int, b:Int ) -> Int{ | |
var aa : Int = a | |
var bb : Int = b | |
var rr : Int = aa % bb | |
while rr != 0 { | |
aa = bb | |
bb = rr | |
rr = aa % bb | |
} |
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
#include <stdio.h> | |
int main(){ | |
int flag = ~0; // 全部1になっている数値はこれでOK? | |
printf("flag = %x\n", flag); // --> "flag = ffffffff" .. OKっぽい. | |
} | |
// THE PERFECT INSIDER -- http://www.amazon.co.jp/dp/4062639246 |
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
CGRect frame = [viewA convertRect:viewB.frame toView:viewA]; |
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
// Getting Raw Data from ALAsset. | |
// ALAsset* asset = ... | |
ALAssetRepresentation *rep = [asset defaultRepresentation]; | |
Byte *buffer = (Byte*)malloc( (size_t)rep.size ); | |
NSUInteger buffered = [rep getBytes:buffer fromOffset:0.0 length:(NSUInteger)rep.size error:nil]; | |
NSData *data = [NSData dataWithBytesNoCopy:buffer length:buffered freeWhenDone:YES]; | |
// UIImage from ALAsset. | |
// ALAsset* asset = ... |
Ctrl+Shift+M
マークダウンプレビュー表示切替⌘+Shift+P
コマンドパレット表示切替⌘+Opt+I
デベロッパウィンドウ表示切替
NewerOlder