This file contains 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 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 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 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 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 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 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 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" | |
} | |
} |
This file contains 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
#!env NODE_PATH=/usr/local/lib/node_modules node --harmony | |
var Promise = require("bluebird") | |
var b = Promise.method(function() { | |
throw new Error("omg"); | |
return "b"; | |
}) | |
var a = Promise.coroutine(function *() { |
This file contains 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
// | |
// GFStuffMovingAroundViewController.swift | |
// GFTest | |
// | |
// Created by Nevyn Bengtsson on 2015-09-10. | |
// Copyright © 2015 Lookback AB. All rights reserved. | |
// | |
import UIKit |