Skip to content

Instantly share code, notes, and snippets.

🤘

itoz itoz

🤘
Block or report user

Report or block itoz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@itoz
itoz / gist:eea1218ea83f7b4f0733
Created Sep 19, 2014
[objc] ダブルクォートをシングルクォートにし、改行をとる JSにOBJECTテキスト渡すときとかにつかう
View gist:eea1218ea83f7b4f0733
//ダブルクォートをシングルクォートにし、改行をとる
NSStirng * string = @"hogehoge";
string = [string stringByReplacingOccurrencesOfString:@"\"" withString:@"\'"];
string = [string stringByReplacingOccurrencesOfString:@"\n" withString:@""];
@itoz
itoz / file0.m
Created Apr 9, 2014
[objc][memo] BundleのJSONを読み込んでNSArrayにする ref: http://qiita.com/itoz/items/62a45eca3d59e0d60ded
View file0.m
//------------------------------
// JSONを読み込む
//------------------------------
NSError *error0 = nil;
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"local" ofType:@"json"];
NSString *jsonString = [[NSString alloc] initWithContentsOfFile:path encoding:NSUTF8StringEncoding error: &error0];
NSData *jsonData = [jsonString dataUsingEncoding:NSUnicodeStringEncoding];
if(error0){NSLog(@"よみこみえらー");}
@itoz
itoz / file0.xml
Created Jun 25, 2012
FDT5.5 で AIR3.3 iOS USBデバッグするためのANTテンプレート ref: http://qiita.com/items/0bb69a83781b48707aec
View file0.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="**********">
<!-- =====================================================================================
FDT5.5 で AIR3.3 iOS USBデバッグするためのANTテンプレート
-->
<property name="PROJ_NAME" value="**********"></property>
View file0.txt
/**
* copyright (c) 2012 www.itoz.jp
* @author itoz
* @since 2012/06/20 19:55:22
*/
package jp.itoz.air.util
{
import flash.events.ErrorEvent;
import flash.filesystem.File;
import flash.filesystem.FileMode;
@itoz
itoz / ClothMotion.as
Created Feb 29, 2012
Away3D 4.0 beta PlaneGeometryの頂点を移動し、布のゆらぎを表現 ref: http://qiita.com/items/2895
View ClothMotion.as
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import away3d.containers.View3D;
import away3d.core.base.SubGeometry;
import away3d.debug.AwayStats;
import away3d.entities.Mesh;
@itoz
itoz / RandomMoveVertex.as
Created Feb 29, 2012
Away3d 4.0 beta Planeの頂点をランダムに移動し、地面ぽくする ref: http://qiita.com/items/2894
View RandomMoveVertex.as
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import away3d.containers.View3D;
import away3d.core.base.SubGeometry;
import away3d.debug.AwayStats;
import away3d.entities.Mesh;
@itoz
itoz / CameraLookAt.as
Created Feb 29, 2012
Away3D 4.0 beta カメラの注視点を指定 ref: http://qiita.com/items/2892
View CameraLookAt.as
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import flash.geom.Vector3D;
import away3d.debug.AwayStats;
import away3d.containers.View3D;
@itoz
itoz / BasicSample.as
Created Feb 29, 2012
Away3D 4.0 beta 立方体をくるくる回す、ベーシックサンプル。 ref: http://qiita.com/items/2891
View BasicSample.as
/**
* copyright (c) 2012 itoz.jp
* @auther itoz
*/
package
{
import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.entities.Mesh;
@itoz
itoz / GeometryApplyTransformation.as
Created Feb 29, 2012
Away3D 4.0 beta のプリミティブの中心点をずらす ref: http://qiita.com/items/2890
View GeometryApplyTransformation.as
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
*/
package
{
import away3d.containers.View3D;
import away3d.entities.Mesh;
import away3d.materials.TextureMaterial;
@itoz
itoz / AccelerometerConvertToRotation_Sample.as
Created Feb 17, 2012
[AIR] Accelerometerから、回転角度に変換
View AccelerometerConvertToRotation_Sample.as
/**
* copyright (c) 2012 www.romatica.com
* @auther itoz
* 2012.2.17 17:31:03
*/
package
{
import flash.events.AccelerometerEvent;
import flash.sensors.Accelerometer;
import flash.events.Event;
You can’t perform that action at this time.