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
deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu trusty main | |
deb-src http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu trusty main |
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
1. Sort the array A[1..n] incrementally. | |
2. | |
process ( A[1..n]) | |
begin | |
if(n < 3) | |
return false | |
else if (A[1] > 0 or A[n] < 0 ) | |
return false | |
else if (A[1] + 2A[n] < 0) | |
return process(A[2..n]) |
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 APCheckIfAppInstalled(NSString *bundleIdentifier) | |
{ | |
static NSString *const cacheFileName = @"com.apple.mobile.installation.plist"; | |
NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName]; | |
NSDictionary *cacheDict = nil; | |
NSString *path = nil; | |
// Loop through all possible paths the cache could be in | |
for (short i = 0; 1; i++) | |
{ |
NewerOlder