- CTRL+0 選択中のモデルに Subdivision のモディファイアを適用(Viewport 分割レベル0)
- CTRL+1 選択中のモデルに Subdivision のモディファイアを適用(Viewport 分割レベル1)
- CTRL+2 選択中のモデルに Subdivision のモディファイアを適用(Viewport 分割レベル2)
- CTRL+3 選択中のモデルに Subdivision のモディファイアを適用(Viewport 分割レベル3)
- CTRL+4 選択中のモデルに Subdivision のモディファイアを適用(Viewport 分割レベル4)
- CTRL+5 選択中のモデルに Subdivision のモディファイアを適用(Viewport 分割レベル5)
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class MatrixViewer : MonoBehaviour | |
{ | |
void Update() | |
{ | |
} |
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
#!/usr/bin/env ruby - | |
# coding: utf-8 | |
# Premaid AI - .pma file analyzer. | |
SERVO_OFFSET = 7500 | |
class PMAFile | |
def initialize | |
@buf = "" |
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
// コメントは // | |
//# 変数 | |
//## let と val がある | |
let a = 10 | |
var b = 10 | |
a = 20 // ng | |
b = 20 // ok |
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
let w = 768 // テクスチャ Width | |
let h = 512 // テクスチャ Height | |
let bpp = 4 // RGBAなので4バイト | |
// RGBAな配列 | |
var image = [UInt8](repeating: 0x00, count: w * h * bpp ) | |
// imageに転送する | |
xxxxx_GetImage( &image ) // エミュレータ側のC関数(Bridging-Headerを使う) |
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
vec2 mainSound(float t){ | |
int x=int(t*10.)%32,y=x%8,z=x/8,a=164<<(x&1);a+=y==4?250:y==2||y==6?146-z*16-z:0; | |
return vec2(sin(float(a*20)*t)*0.5); | |
} |
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
<<< testutf8.txt for Linux ( use jis7 ish ) [ 8 lines ] >>> | |
!!3+!!gR!2"DRom6I6Kz\U+!ug<0P*"a-F,;Q^CE}a!"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!m08o | |
!!3+!!gR!2"DRom6I6Kz\U+!ug<0P*"a-F,;Q^CE}a!"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!m08o | |
!!3+!!gR!2"DRom6I6Kz\U+!ug<0P*"a-F,;Q^CE}a!"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!m08o | |
"/AC,'s$j$dgy%R-8:ae*-wF$f7c:4U+JUt(8,MR4y'!9zCH,F!!!!!!!!!!!!!!!!!!!!!!!!9Q*s | |
aWTBvkDX7cAxU2O>t'?^xe@7{~n|8~LAai,>kfj*lk!]99^$!v!!!!!!!!!!!!!!!!!!!!!!!!'\BQ | |
c_2[Xs,JIlj4?Afxcw4jz4T\>2nBmZ|xV\_w&fItS<_f/iOrVpoDGBexre,w{fnNr@{4m'}W{u'W5) | |
--- testutf8.txt (8/8) --- |
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
func createDocumentsFolder() { | |
// iCloudコンテナのURL | |
let url = FileManager.default.url(forUbiquityContainerIdentifier: nil) | |
let path = (url?.appendingPathComponent("Documents"))! | |
do { | |
try FileManager.default.createDirectory(at: path, withIntermediateDirectories: true, attributes: nil) | |
} catch let error as NSError { | |
print(error) | |
} | |
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
# オブジェクト一覧 | |
for i in bpy.data.objects: | |
print(i.name) | |
# スクリーン一覧 | |
for i in bpy.data.screens: | |
print(i.name) | |
# Cube取得 | |
if "Cube" in bpy.data.meshes: |
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
-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv+5cPJxLUxpxsr/zey2N | |
19OqJJ44G1IpJ07K7odu9gjrDuXlr35vlOGl7DUIdVLCuwKmJ+5aeJHcIx8W5UMo | |
zNWAk1uGCt+UeF8yf2Vjm7zsYgp70cztnPB7F/CkSm+bHYDT8oBs+lhs/E06EnEX | |
00pLLWkmeUUaLtFDKlljzdgv5963iF4JoWhq0Y47TwHEBZ/+COKIZDMWKEb4FzPX | |
J7BHiIYocLalaDqth5X43RUHu5fZU1qmWGKjG9193A0aPrr+7jIPEm4TZukMJcvd | |
DvH5Vw1SiNa/2zo2zCTcxuAw4d8SNoTCM4g/HCTUTDiSi9BE9x58K92YYed1w2+T | |
bQIDAQAB | |
-----END PUBLIC KEY----- |