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
Parse.Cloud.define("PersonalActivity", function(request, response) | |
{ | |
var queryUserActivity = new Parse.Query("Activity"); | |
queryUserActivity.include("fromUser"); | |
queryUserActivity.equalTo("objectId", request.params.objectId); | |
var userActivityArray = []; | |
queryUserActivity.find( | |
{ | |
success: function(fromUserActivities) | |
{ |
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
//Begin .h file | |
// | |
// TKCache.h | |
// TokenApp | |
// | |
// Created by BASEL FARAG on 12/18/14. | |
// Copyright (c) 2014 ABaselNotBasilProduction. All rights reserved. | |
// |
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 <Foundation/Foundation.h> | |
/** | |
* Takes an array of people to be arranged for Secret Santa and returns a dictionary where each person is a key and | |
* the corresponding value for each person is the other person to whom they will give. | |
* | |
* @param inputArray Array of people playing Secret Santa | |
* | |
* @return The dictionary from giver (key) to recipient (value) | |
*/ |
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
-(int)compareArrays | |
{ | |
for (i = 1; i < 100; i++) | |
{ | |
// for (youArrayVariable in makeAnArray){ | |
if (![myArray[i] = makeAnArray[i]]){ | |
return myArray[i]; // yourArrayVariable | |
} | |
// } | |
} |
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
-(int) compareArraysFaster | |
{ | |
NSMutableArray *myArray = [myArray array]; | |
for (element in makeAnArray) | |
{ | |
myArray[element] = 1; | |
} | |
//indexes in myArray match up with element in makeAnArray | |
//We specified at the top is that the numbers are unique. | |
for (i = 1; i <= makeAnArray.length(); i++) |
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
int sizeOnebag, sizeAnotherbag, newBagsize; | |
sizeOnebag = oneBag.getCurrentSize(); | |
sizeAnotherbag = anotherBag.getCurrentSize(); | |
newBagsize = sizeAnotherbag + sizeOnebag; | |
ArrayBag<string> finalBag; |
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
//Lucas Larson | |
//7/19/15 | |
//problem 1 | |
//assignment #2 | |
#ifndef _ARRAY_BAG | |
#define _ARRAY_BAG | |
#include "BagInterface.h" | |
#include <vector> | |
#include <cstddef> |
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
int arraySize; | |
for (int i = arraySize - 1; i >= 0; i--) { | |
cout << arraySize[i]; | |
} | |
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
// | |
// TKCache.h | |
// TokenApp | |
// | |
// Created by BASEL FARAG on 12/18/14. | |
// Copyright (c) 2014 ABaselNotBasilProduction. All rights reserved. | |
// | |
//The purpose of this Support file is to provide custom caching behavior that can be used to quickly display up to date information about media. When the current user likes or comment on a given media we manually update the local cache as soon as the request is sent. This allows us to propogate the model change throughout the app without need to wait for the initial save request to finish and then refreshing the content. | |
//So for example we can manually manage the like and comment information of images so that the UI stays responsive and accurate when the user likes and comments on photos. |
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 "CameraEngine.h" | |
#import "VideoEncoder.h" | |
#import "AssetsLibrary/ALAssetsLibrary.h" | |
static CameraEngine *_engine; | |
@interface CameraEngine () <AVCaptureVideoDataOutputSampleBufferDelegate, AVCaptureAudioDataOutputSampleBufferDelegate> | |
{ | |
AVCaptureSession *_session; | |
AVCaptureVideoPreviewLayer *_previewLayer; |
OlderNewer