This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (lldb) po _webView | |
| <WKWebView: 0x6080001a24c0> | |
| (lldb) po [_webView subviews] | |
| <__NSArrayM 0x6000002426a0>( | |
| <WKView: 0x608000140bb0> | |
| ) | |
| (lldb) po [[[_webView subviews] firstObject] subviews] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| /// Retrieve version number of this library, roughly as outputted by git describe | |
| extern NSString *GFGetVersion(void); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ➜ MeshPipe (master) ✗ pod spec lint --no-clean --verbose MeshPipe.podspec | |
| MeshPipe (0.1.0) - Analyzing on iOS 7.0 platform. | |
| Preparing | |
| [!] Unable to load a specification for the plugin `/Library/Ruby/Gems/2.0.0/gems/cocoapods-try-release-fix-0.1.2` | |
| Analyzing dependencies | |
| Fetching external sources | |
| -> Fetching podspec for `MeshPipe` from `/Users/nevyn/Dev/CoreDragon/Libraries/MeshPipe/MeshPipe.podspec` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pod::Spec.new do |s| | |
| # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # | |
| s.name = "MeshPipe" | |
| s.version = "0.1.0" | |
| s.summary = "IPC library for iOS" | |
| s.description = <<-DESC | |
| MeshPipe is an IPC (inter-process communication) library for iOS using UDP networking. | |
| It allows multiple running applications on a single iOS device to send arbitrary data to each other. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for(NSString *when in @[@"will", @"did"]) { | |
| [_output writeRowWithValues:@[ // COLUMNS: | |
| [NSString stringWithFormat:@"%.4f", [_output currentSessionTime]], // Time | |
| type, // {interface|device} | |
| when, // {will|did} | |
| [NSString stringWithFormat:@"%d", newDegrees], // newOrientationInDegreesWhere0IsPortrait | |
| [NSString stringWithFormat:@"%.2f", duration], // transitionDurationForInterfaceRotation | |
| ]]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import <UIKit/UIKit.h> | |
| @interface UIControl (GFNextResponder) | |
| @property(nonatomic, unsafe_unretained) IBOutlet UIControl *gf_nextResponder; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // See also https://github.com/CocoaLumberjack/CocoaLumberjack/blob/master/Classes/DDASLLogCapture.m | |
| #import "GFASLProxy.h" | |
| #include <asl.h> | |
| #include <notify.h> | |
| #include <notify_keys.h> | |
| #include <sys/time.h> | |
| @implementation GFASLProxy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Wrong: Both synchronous and asynchronous errors | |
| function Thing(a, b, c) { | |
| if(!a) | |
| throw "missing argument"; | |
| return Promise(...) | |
| } | |
| try { | |
| yay = Thing(...).catch(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log("Hello AwsStorageAdapter.coffee!!"); | |
| Interface = require("../../Interface/storage.coffee") | |
| class AWSStorageAdapter extends Interface.Storage | |
| Path = require 'path' | |
| AWS = require 'aws-sdk' | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Foo : NSObject { | |
| class func shared() -> Foo { | |
| return Foo() | |
| } | |
| func foo() -> String { | |
| return "hello" | |
| } | |
| } |