I hereby claim:
- I am a2 on github.
- I am a2 (https://keybase.io/a2) on keybase.
- I have a public key whose fingerprint is 5293 8767 DF1B 7305 FC2D C900 0B2C 3A3F E158 7E95
To claim this, I am signing this object:
@import Darwin.C.tgmath; | |
// acos | |
#undef acos | |
#define acos(__x) __tg_acos(__tg_promote1((__x))(__x)) | |
// asin | |
#undef asin | |
#define asin(__x) __tg_asin(__tg_promote1((__x))(__x)) |
/*** | |
* Bitmap Loader | |
* Copyright © 2013 Matthew Tole | |
* | |
* Version 2.0.2 | |
***/ | |
#include <pebble.h> | |
#include "bitmap-loader.h" |
import CoreGraphics | |
func CGRectDivide(rect: CGRect, amount: CGFloat, edge: CGRectEdge) -> (slice: CGRect, remainder: CGRect) { | |
var slice = CGRectZero | |
var remainder = CGRectZero | |
CGRectDivide(rect, &slice, &remainder, amount, edge) | |
return (slice, remainder) | |
} |
@import Foundation; | |
#define A2DictionaryOfVariableBindings(...) _A2DictionaryOfVariableBindings(@"" # __VA_ARGS__, __VA_ARGS__, nil) | |
extern NSDictionary *_A2DictionaryOfVariableBindings(NSString *commaSeparatedKeysString, id firstValue, ...); // not for direct use |
I hereby claim:
To claim this, I am signing this object:
class Mutex { | |
private let _mutex = UnsafeMutablePointer<pthread_mutex_t>.alloc(1) | |
init() { | |
pthread_mutex_init(_mutex, nil) | |
} | |
func lock() -> Int32 { | |
return pthread_mutex_lock(_mutex) | |
} |
import CoreLocation | |
import UIKit | |
extension CLLocationCoordinate2D { | |
init() { | |
self.init(latitude: 0, longitude: 0) | |
} | |
static var invalidCoordinate: CLLocationCoordinate2D { | |
return kCLLocationCoordinate2DInvalid |
import UIKit | |
protocol myProtocol: class { | |
func dothatthing () -> Void | |
} | |
var array : [protocol<myProtocol>] = [] | |
class A : myProtocol { | |
func dothatthing() { |
Verifying I am +a2 on my passcard. https://onename.com/a2 |
extension RangeReplaceableCollectionType { | |
init<S: SequenceType where S.Generator.Element == Self.Generator.Element>(sequence: S) { | |
self.init() | |
extend(sequence) | |
} | |
} | |
extension RangeReplaceableCollectionType where Index: IntegerType { | |
init<S: SequenceType where S.Generator.Element == Self.Generator.Element>(sequence: S) { | |
self.init() |