I hereby claim:
- I am hboon on github.
- I am hboon (https://keybase.io/hboon) on keybase.
- I have a public key whose fingerprint is 1545 BD4C CFD4 F2C8 3949 C3E6 2039 F178 DFE5 69B6
To claim this, I am signing this object:
| env = if ENV['dev'] == '1' | |
| 'dev' | |
| elsif ENV['adhoc'] == '1' | |
| 'adhoc' | |
| else | |
| 'dev' #default | |
| end | |
| if env == 'dev' | |
| app.codesign_certificate = 'iPhone Developer: Hwee Boon Yar (something)' |
| it "verify #use_weak_callbacks" do | |
| class ButtonParentView1 < UIView | |
| def dealloc | |
| p "dealloc #{self} tag: #{tag}" | |
| super | |
| end | |
| def create_btn | |
| sub2 = UIControl.alloc.init | |
| sub2.when(UIControlEventTouchUpInside) do |
| class AppDelegate | |
| def application(application, didFinishLaunchingWithOptions:launchOptions) | |
| @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) | |
| @window.makeKeyAndVisible | |
| vc = UIViewController.new | |
| vc.view.backgroundColor = UIColor.redColor | |
| View.show_in_view(vc.view) | |
| @window.rootViewController = vc | |
| true |
I hereby claim:
To claim this, I am signing this object:
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| //Courtesy of https://github.com/InderKumarRathore/DeviceUtil/blob/master/DeviceUtil.m | |
| - (NSString*)moHardwareDescription { | |
| NSString *hardware = [self moHardwareString]; | |
| if ([hardware isEqualToString:@"iPhone1,1"]) return @"iPhone 2G"; | |
| if ([hardware isEqualToString:@"iPhone1,2"]) return @"iPhone 3G"; | |
| if ([hardware isEqualToString:@"iPhone2,1"]) return @"iPhone 3GS"; | |
| if ([hardware isEqualToString:@"iPhone3,1"]) return @"iPhone 4"; | |
| if ([hardware isEqualToString:@"iPhone3,2"]) return @"iPhone 4"; | |
| if ([hardware isEqualToString:@"iPhone3,3"]) return @"iPhone 4 (CDMA)"; | |
| if ([hardware isEqualToString:@"iPhone4,1"]) return @"iPhone 4S"; |
| // | |
| // AVAsset+VideoOrientation.h | |
| // | |
| // Created by Luca Bernardi on 19/09/12. | |
| // Copyright (c) 2012 Luca Bernardi. All rights reserved. | |
| // | |
| #import <AVFoundation/AVFoundation.h> | |
| typedef enum { | |
| LBVideoOrientationUp, //Device starts recording in Portrait |
| Steve Wozniak, Apple alumni and all-around amazing person - @stevewoz | |
| Victor Agreda, Jr., TUAW - @superpixels | |
| Mike T. Rose, TUAW - @miketrose | |
| John Gruber, Daring Fireball - @gruber | |
| Arnold Kim, MacRumors - @arnoldkim | |
| Jason Snell, Macworld - @jsnell | |
| Josh Lowensohn, CNET - @josh | |
| Chris O'Brien, LA Times - @obrien | |
| Mark Gurman, 9to5Mac - @markgurman | |
| Matthew Panzarino, TNW - @panzer |
| UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens | |
| - What's new in Cocoa | |
| - Accessibility in iOS | |
| - Building User Interfaces for iOS 7 | |
| - Getting Started with UIKit Dynamics | |
| - What's new in Cocoa Touch | |
| - What's New With Multitasking | |
| - Best Practices for Cocoa Animation | |
| - Improving Power Efficiency with App Nap | |
| - Introducing Text Kit |
| #!/bin/bash | |
| killall Messages | |
| killall Dock | |
| open -a Messages |