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
| { | |
| "motion0_standNeutral":{ | |
| "point0":(0,0,101,405), | |
| "point1":(0,10,101,405), | |
| "pointx":(xOrigin, yOrigin, xWide, yHeight) }, | |
| "motion1_kneeUp":{ | |
| "point0":(34,25,214,591), | |
| "point1":(92,39,214,591), | |
| "pointx":(xOrigin, yOrigin, xWide, yHeight) } | |
| } |
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
| // configure API | |
| var express = require('express') | |
| , app = express(); | |
| var mongodb = require('mongodb'); | |
| var MongoClient = require('mongodb').MongoClient | |
| , format = require('util').format; | |
| MongoClient.connect('mongodb://127.0.0.1:27017/enterDbName', function(err, db) { |
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
| - (BOOL)setMore | |
| { | |
| BOOL moreExist = NO; | |
| if (foo || bar) | |
| { | |
| moreExist = YES; | |
| [NSURLConnection sendAsynchronousRequest:[NSURLRequest | |
| requestWithURL: [NSURL URLWithString:url]] queue:[NSOperationQueue mainQueue] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) { |
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
| - (void)viewDidLoad | |
| { | |
| UIView* sampleView = [[UIView alloc] init]; | |
| [self.view addSubview:sampleView]; | |
| sampleView.backgroundColor = [UIColor redColor]; | |
| // define center of view | |
| CGPoint currentCenterPoint = self.view.center; | |
| CGRect invisibleRect = CGRectMake(currentCenterPoint.x, currentCenterPoint.y, 0, 0); |
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
| // | |
| // CoreDataManager.h | |
| // | |
| // Created by Rex Fatahi on 3/17/14. | |
| // Copyright (c) 2014 aug2uag. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> | |
| @interface CoreDataManager : NSObject |
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
| // Backbone.js 1.1.2 | |
| // (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
| // Backbone may be freely distributed under the MIT license. | |
| // For all details and documentation: | |
| // http://backbonejs.org | |
| (function(root, factory) { | |
| // Set up Backbone appropriately for the environment. Start with AMD. |
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
| // | |
| // ViewController.m | |
| // remove from superview demo | |
| // | |
| // Created by Rex Fatahi on 5/17/14. | |
| // Copyright (c) 2014 aug2uag. All rights reserved. | |
| // | |
| #import "ViewController.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
| // | |
| // ViewController.m | |
| // gfhdsjkaryeuiw123 | |
| // | |
| // Created by Rex Fatahi on 6/6/14. | |
| // Copyright (c) 2014 aug2uag. All rights reserved. | |
| // | |
| #import "ViewController.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
| // | |
| // ViewController.swift | |
| // GingerBreadMan | |
| // | |
| // Created by Rex Fatahi on 6/22/14. | |
| // Copyright (c) 2014 aug2uag. All rights reserved. | |
| // | |
| import UIKit |
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
| #pragma tableview datasource | |
| - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { | |
| return 1; | |
| } | |
| - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { | |
| return 0; | |
| } | |
| - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { |