-
InterfaceBuilder3
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
"com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB"
This file contains hidden or 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
// Siv3D: 仮画像ファイルを作成するツールです | |
// Main.cpp として使ってください | |
# include <Siv3D.hpp> // Siv3D v0.6.15 | |
void createTextImage(String text, Image& image, Font& font, String filename) | |
{ | |
// https://zenn.dev/reputeless/books/siv3d-documentation/viewer/tutorial-image | |
constexpr Vec2 basePos{ 20, 20 }; |
This file contains hidden or 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 <Siv3D.hpp> | |
// Siv3D 0.6.15 | |
// My basic code for Typing Game Example. | |
enum class AppState { | |
Title, | |
Countdown, | |
Typing, | |
}; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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]; |
NewerOlder