find . -name '*.mobileprovision' -print0 | xargs -0 -t -n 1 security cms -D -i | grep -A1 UUID 2>&1
security cms -D -i foo.mobileprovision -o foo.plist
| #import <UIKit/UIKit.h> | |
| #import <objc/runtime.h> | |
| // Hook with ObjC runtime functions | |
| %config(generator=internal) | |
| // New methods created below | |
| @interface UIGestureRecognizer () | |
| + (void)hs_beginForcingAllNewGestureRecognizersToAllowPencilInput; | |
| + (void)hs_endForcingAllNewGestureRecognizersToAllowPencilInput; |
find . -name '*.mobileprovision' -print0 | xargs -0 -t -n 1 security cms -D -i | grep -A1 UUID 2>&1
security cms -D -i foo.mobileprovision -o foo.plist
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'yaml' | |
| def install_gem(name, version) | |
| require 'rubygems/commands/install_command' | |
| cmd = Gem::Commands::InstallCommand.new | |
| cmd.handle_options [name, '--version', version] | |
| begin |
| ** BUILD SUCCEEDED ** | |
| 85.61 real 116.49 user 28.51 sys | |
| - CPU: http://cl.ly/Z8b3 | |
| - Fans: Never spun up | |
| - Heat: not noticeable |
| import Foundation | |
| import ObjectiveC.runtime | |
| let myString = "foobar" as NSString | |
| println(myString.description) | |
| let myBlock : @objc_block (AnyObject!) -> String = { (sself : AnyObject!) -> (String) in | |
| "✋" | |
| } |
| #import <Foundation/Foundation.h> | |
| int main(int argc, char *argv[]) { | |
| NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init]; | |
| NSString *foo = @"foo"; | |
| NSString *bar = @"bar"; | |
| NSString *oldSkool = [NSString stringWithFormat:@"%@ %@", foo, bar]; | |
| NSString *original = [NSString stringWithFormat:@"%1$@ %2$@", foo, bar]; |
| protocol ScalarArithmetic { | |
| var acos:Self {get} | |
| var asin:Self {get} | |
| var atan:Self {get} | |
| func atan2(x:Self) -> Self | |
| var cos:Self {get} | |
| var sin:Self {get} | |
| var tan:Self {get} | |
| var exp:Self {get} | |
| var exp2:Self {get} |
| import Foundation | |
| // Swift's << operator is not left-associative, so we'll use <<< instead | |
| operator infix <<< { associativity left } | |
| // Output operator for Streamable objects | |
| func <<< (var outputStream: OutputStream, streamable: Streamable) -> OutputStream { | |
| // Note: It seems like streamable.writeTo(&outputStream) should work, but playground crashes, | |
| // so we write to a string and then output the string | |
| var outputString = "" |
| import UIKit | |
| import QuartzCore | |
| class ViewController: UIViewController { | |
| @IBOutlet weak var label: UILabel | |
| @IBOutlet weak var counter: UILabel | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |