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
-- test_moai_chipmunk.lua | |
-- wookay.noh at gmail.com | |
package.path = package.path .. ";../?.lua" | |
require 'libmoai' | |
function test_moai_chipmunk() | |
local layer = Sim.layer() | |
layer.enableTouchEvents() |
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
-- test_moai_path_finder.lua | |
-- wookay.noh at gmail.com | |
package.path = package.path .. ";../?.lua" | |
require 'libmoai' | |
function test_moai_path_finder() | |
local grid = Grid.new({32,32}) | |
grid.rows = { | |
{0x03, 0x03, 0x00, 0x03, 0x03, 0x03, 0x03, 0x03}, |
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/ruby | |
# run_moai.rb | |
# wookay.noh at gmail.com | |
# sudo gem install filewatcher | |
require 'rubygems' | |
require 'filewatcher' |
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
-- test_scrub.lua | |
package.path = package.path .. ";../luacat/?.lua" | |
require 'UnitTest' | |
function scrub(args) | |
-- TODO: implement |
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
$ ./console.rb | |
ls TARGET : list target object (l) help : help (h) | |
> ls : list current object quit : quit (q) | |
> ls -r : list recursive about : about libcat Console | |
cd TARGET : change target object clear : clear the screen | |
> cd : to topViewController history : input commands history | |
> cd . : to self sleep N : sleep N seconds | |
> cd .. : to superview | |
> cd / : to rootViewController events : list touch events (e) | |
> cd ~ : to keyWindow > events record : record on/off (er) |
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
RootViewController> cd MPMediaQuery | |
$0 = <RootViewController: 0x144ba0> | |
MPMediaQuery> ls | |
[MPMEDIAQUERY]: MPMediaQuery | |
CLASS_METHODS: [ | |
"_clearCachedDynamicPropertiesForMediaLibrary:", | |
"_clearCachedItemsAndCollections", | |
"_clearCachedItemsAndCollectionsForMediaLibrary:", | |
"_didReceiveMemoryWarning", | |
"_executeMediaCacheSyncedBlock:", |
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
RootViewController> cd 0 | |
UITableViewCell> p | |
== UITableViewCell == | |
accessoryType 0 [UITableViewCellAccessoryNone] i | |
accessoryView <null> @"UIView" | |
backgroundView <UIGroupTableViewCellBackground: 0xa27c2a0; ... @"UIView" | |
contentView <UITableViewCellContentView: 0xa27c270; fram... @"UIView" R | |
detailTextLabel <UITableViewLabel: 0xa27c690; frame = (271 1... @"UILabel" R | |
editableTextField <null> @"UITextField" R | |
editingAccessoryType 0 [UITableViewCellAccessoryNone] i |
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
// | |
// TestChess.m | |
// Chess | |
// | |
// Created by wookyoung noh on 08/11/10. | |
// Copyright 2010 factorcat. All rights reserved. | |
// | |
#import "TestChess.h" | |
#import "ChessBoard.h" |
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
// | |
// TestJanggi.m | |
// JanggiNorm | |
// | |
// Created by Woo-Kyoung Noh on 13/09/10. | |
// Copyright 2010 factorcat. All rights reserved. | |
// | |
#import "TestJanggi.h" | |
#import "JanggiManager.h" |
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
RootViewController> cd / | |
UITabBarController> cd | |
RootViewController> ls | |
[ROOTVIEWCONTROLLER]: <RootViewController: 0x6024920> | |
NAVIGATIONITEM: <UINavigationItem: 0x6024b20; title = 'libcat'> | |
TABLEVIEW: <UITableView: 0x7042600; frame = (0 0; 320 367); clipsToBounds = YES; opaque = NO; autoresize = W+H; layer = <CALayer: 0x629d510>; contentOffset: {0, 0}> | |
SECTIONS: | |
0 [ | |
"[0] <UITableViewCell: 0x629f310; frame = (0 46; 320 45); text = 'Tests'; autoresize = W; layer = <CALayer: 0x629f440>>", | |
"[1] <UITableViewCell: 0x629f6b0; frame = (0 91; 320 44); text = 'Assertions'; autoresize = W; layer = <CALayer: 0x629f790>>", |