Skip to content

Instantly share code, notes, and snippets.

View wookay's full-sized avatar
📟
갛낲닽랔맟밪상앗잡참칼탇판학

WooKyoung Noh wookay

📟
갛낲닽랔맟밪상앗잡참칼탇판학
View GitHub Profile
@wookay
wookay / test_moai_chipmunk.lua
Created December 26, 2011 11:54
Test MOAI chipmunk physics
-- 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()
@wookay
wookay / test_moai_path_finder.lua
Created December 26, 2011 11:53
Test MOAI path finder
-- 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},
@wookay
wookay / run_moai.rb
Created September 23, 2011 06:37
auto refresh moai main.lua
#! /usr/bin/ruby
# run_moai.rb
# wookay.noh at gmail.com
# sudo gem install filewatcher
require 'rubygems'
require 'filewatcher'
@wookay
wookay / test_scrub.lua
Created August 11, 2011 06:44
test_scrub
-- test_scrub.lua
package.path = package.path .. ";../luacat/?.lua"
require 'UnitTest'
function scrub(args)
-- TODO: implement
@wookay
wookay / object introspection.sh
Created March 21, 2011 10:49
libcat Console object introspection
$ ./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)
@wookay
wookay / media_query.sh
Created March 15, 2011 11:52
media query
RootViewController> cd MPMediaQuery
$0 = <RootViewController: 0x144ba0>
MPMediaQuery> ls
[MPMEDIAQUERY]: MPMediaQuery
CLASS_METHODS: [
"_clearCachedDynamicPropertiesForMediaLibrary:",
"_clearCachedItemsAndCollections",
"_clearCachedItemsAndCollectionsForMediaLibrary:",
"_didReceiveMemoryWarning",
"_executeMediaCacheSyncedBlock:",
@wookay
wookay / list_properties.txt
Created February 17, 2011 14:02
list properties
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
@wookay
wookay / TestChess.m
Created November 8, 2010 22:49
Chess Test
//
// TestChess.m
// Chess
//
// Created by wookyoung noh on 08/11/10.
// Copyright 2010 factorcat. All rights reserved.
//
#import "TestChess.h"
#import "ChessBoard.h"
@wookay
wookay / TestJanggi.m
Created October 11, 2010 08:57
장기 유닛 테스트
//
// TestJanggi.m
// JanggiNorm
//
// Created by Woo-Kyoung Noh on 13/09/10.
// Copyright 2010 factorcat. All rights reserved.
//
#import "TestJanggi.h"
#import "JanggiManager.h"
@wookay
wookay / test_interaction
Created October 11, 2010 08:42
libcat Console test script
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>>",