Skip to content

Instantly share code, notes, and snippets.

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

WooKyoung Noh wookay

📟
갛낲닽랔맟밪상앗잡참칼탇판학
View GitHub Profile
@wookay
wookay / Boogeyman.rb
Created February 22, 2010 15:20
Boogeyman
class Boogeyman
def self.latest
@@latest
end
# We'll redefine initialize
def initialize(name, location)
@name = name
@location = location
@wookay
wookay / NSArraySortByMostFrequent.m
Created March 24, 2010 03:55
sortByMostFrequent
@interface NSArray (Ext)
-(NSArray*) sortByMostFrequent ;
@end
@implementation NSArray (Ext)
-(NSArray*) sortByMostFrequent {
NSMutableDictionary* frequencyDict = [NSMutableDictionary dictionary];
@interface NSString (NSStringHexToBytes)
-(NSData*) hexToBytes ;
@end
@implementation NSString (NSStringHexToBytes)
-(NSData*) hexToBytes {
NSMutableData* data = [NSMutableData data];
int idx;
@wookay
wookay / TestHangul.m
Created August 21, 2010 17:34
HangulInputSystem Test
//
// TestHangul.m
// Hangul
//
// Created by Woo-Kyoung Noh on 20/08/10.
// Copyright 2010 factorcat. All rights reserved.
//
#import "TestHangul.h"
#import "UnitTest.h"
@wookay
wookay / TestGridConverter.m
Created August 30, 2010 15:53
Grid Notes Test
//
// TestGridConverter.m
// Hangul
//
// Created by Woo-Kyoung Noh on 28/08/10.
// Copyright 2010 factorcat. All rights reserved.
//
#import "TestGridConverter.h"
#import "GridConverter.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>>",
@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 / 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 / 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 / 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:",