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
struct Property<T> { | |
let name: String | |
let _getter: () -> T | |
let _setter: T -> () | |
var value: T { | |
get { | |
return _getter() | |
} |
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
// | |
// LTClientBrowser.h | |
// LayerTreeServer | |
// | |
// Created by Indragie Karunaratne on 2014-05-21. | |
// Copyright (c) 2014 Indragie Karunaratne. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <LayerTreeKit/LayerTreeKit.h> |
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
// | |
// GHReadWriteQueue.h | |
// GitHub | |
// | |
// Created by Justin Spahr-Summers on 2014-03-24. | |
// Copyright (c) 2014 GitHub. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
#include <pebble.h> | |
#include "scroll-text-layer.h" | |
#define MAX_HEIGHT 2000 | |
#define PADDING_X 4 | |
#define PADDING_Y 4 | |
struct ScrollTextLayer { | |
TextLayer* text_layer; | |
ScrollLayer* scroll_layer; |
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
/*** | |
* Data Processor | |
* Copyright © 2014 Matthew Tole | |
***/ | |
#include <pebble.h> | |
#include "data-processor.h" | |
static char* data_start = NULL; | |
static char* data_pos = NULL; |
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
/** | |
Provides the ability to verify key paths at compile time. | |
If "keyPath" does not exist, a compile-time error will be generated. | |
Example: | |
// Verifies "isFinished" exists on "operation". | |
NSString *key = SQKeyPath(operation, isFinished); | |
// Verifies "isFinished" exists on self. |
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
/*** | |
* Font Loader | |
* Copyright © 2013 Matthew Tole | |
* | |
* 1.0.0 | |
***/ | |
#include <pebble.h> | |
#include "font-loader.h" |
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
/*** | |
* Message Queue | |
* Copyright © 2013 Matthew Tole | |
* | |
* Version 1.0.0 | |
***/ | |
#include <pebble.h> | |
#include "message-queue.h" |
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
/*** | |
* Bitmap Loader | |
* Copyright © 2013 Matthew Tole | |
* | |
* Version 2.0.2 | |
***/ | |
#include <pebble.h> | |
#include "bitmap-loader.h" |
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
/*** | |
* Pebble Assist | |
* Copyright (C) 2014 Matthew Tole | |
* | |
* Version 0.2.0 | |
***/ | |
/** | |
The MIT License (MIT) |