Skip to content

Instantly share code, notes, and snippets.

AWSS3TransferManager *transferManager = [AWSS3TransferManager defaultS3TransferManager];
// Construct the NSURL for the download location.
NSString* downloadingFilePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"downloaded-myImage.jpg"];
NSURL *downloadingFileURL = [NSURL fileURLWithPath:downloadingFilePath];
#import "ViewController.h"
typedef NS_ENUM(NSInteger, HDDirection) {
HDDirectionNorth = 0,
HDDirectionSouth = 1,
HDDirectionWest = 2,
HDDirectionEast = 3,
};
@interface ViewController ()
//
// OrbMaster.m
// fieldTheory1
//
// Created by alexanderbollbach on 8/20/15.
// Copyright © 2015 alexanderbollbach. All rights reserved.
//
#import "OrbMaster.h"
#import "OrbView.h"
@interface OrbView()
@property(nonatomic) double closestOrbDistance;
@property(nonatomic) NSString* closestOrbName;
@property(nonatomic,strong) CAShapeLayer* connectLayer;
@property(nonatomic) CGMutablePathRef connectPath;
@property(nonatomic,strong) OrbView* closestOrb;
#import "OrbitViewController.h"
#import <stdio.h>
#import <math.h>
@interface OrbitViewController()
@end
@implementation OrbitViewController
//
// RootController.m
// slideOut
//
// Created by alexanderbollbach on 8/25/15.
// Copyright © 2015 alexanderbollbach. All rights reserved.
//
#define kExposedWidth 200.0
#define kMenuCellID @"MenuCell"
#import "RootController.h"
//
// OrbLayerBaseOverlay.m
// fieldTheory1
//
// Created by alexanderbollbach on 8/29/15.
// Copyright © 2015 alexanderbollbach. All rights reserved.
//
#define degreesToRadians(x) ((x) * M_PI / 180.0)
#import "OrbLayerBaseOverlay.h"
-(void)updateDrawingWithCount:(int)count {
int degree;
switch (self.beat) {
case beat1:
degree = 90;
break;
case beat2:
degree = 180;
break;
#import "OrbView.h"
#import "UIViewController+JASidePanel.h"
#import "JASidePanelController.h"
#import "OrbManager.h"
#import "OrbMaster.h"
#import <math.h>
#import "OrbitViewController.h"
#import "SettingsViewController.h"
#import "OrbLayerBase.h"
- (void)viewDidLoad {
[super viewDidLoad];
incrementName = 0;
self.orbManager = [OrbManager sharedManager];
self.orbMaster = [OrbMaster orbMaster];