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
Promise.joinPooledTasks = (worker, poolSize, onTaskFinished) => { | |
let didEnqueAllTasks = false; | |
let nextTaskIndex = -1; | |
const onTaskEnd = (index, status, result, resolve) => { | |
if (onTaskFinished) { | |
onTaskFinished(index, status, result); | |
} |
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
Promise.waitForAll = promises => { | |
if (!promises || typeof promises[Symbol.iterator] !== 'function') { | |
return Promise.reject(); | |
} | |
if (promises.length === 0) { | |
return Promise.resolve([]); | |
} | |
return Promise.all( |
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
PODS_CHECKSUM=$( md5 -q ${PROJECT_DIR}/Podfile.lock ) | |
CACHED_CHECKSUM=$( cat ${PROJECT_DIR}/fatCache/checksum ) | |
if [ $PODS_CHECKSUM != $CACHED_CHECKSUM ] | |
then | |
echo error: pod files are stale. Please run make pod-install | |
exit 1 | |
fi |
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
-(void) syncButtonViewDidPassedSyncTreshhold:(CPRSyncButtonView*) syncView { | |
self.didFinishSync = YES; | |
} | |
-(void) syncButtonViewDidShowSyncConfirmation:(CPRSyncButtonView*) syncView { | |
self.didFinishSync = NO; | |
self.desktopSyncView.hidden = YES; | |
self.accessoryView.hidden = NO; | |
} |
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
############################################################################ | |
# Copyright 2009 Tomer Shiri [email protected] # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # | |
# you may not use this file except in compliance with the License. # | |
# You may obtain a copy of the License at # | |
# # | |
# http://www.apache.org/licenses/LICENSE-2.0 # | |
# # | |
# Unless required by applicable law or agreed to in writing, software # |