Skip to content

Instantly share code, notes, and snippets.

View reeze's full-sized avatar
🎯
Focusing

Reeze Xia reeze

🎯
Focusing
View GitHub Profile
@jeffkreeftmeijer
jeffkreeftmeijer / XmlParser.h
Created March 15, 2012 11:24
Objective-C XML parser
#import <Foundation/Foundation.h>
@interface XmlParser : NSObject <NSXMLParserDelegate>
@property (strong, nonatomic) NSData *xmlData;
@property (strong, nonatomic) NSMutableDictionary *dictionary;
@property (strong, nonatomic) NSMutableDictionary *currentNode;
@property (strong, nonatomic) NSMutableDictionary *currentParentNode;
- (id)initWithXMLData:(NSData *)xmlData;
#!/bin/sh
# Change this line to the URI path of the xcode DMG file.
# XCode 3.2.5
#XCODE_PATH="/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg"
# XCode 4
#XCODE_PATH="/Developer_Tools/xcode_4_and_ios_sdk_4.3__final/xcode_4_and_ios_sdk_4.3__final.dmg"
@thewoolleyman
thewoolleyman / just_started_working
Created October 22, 2010 16:54
mysql_snow_leopard_homebrew_gem_compile_problems.markdown
To follow up, this just "started working". I had introduced an unrelated error with debugging code in mkmf.rb. Once I removed that, everything compiled.
I suspect this (plus a reboot) was the magic fix:
Specified 64-bit arch in boot plist:
$ sudo vi /Library/Preferences/SystemConfiguration/com.apple.Boot.plist
# add: "<string>arch=x86_64</string>"