sudo easy_install pip
sudo pip install requests
sudo pip install pyquery
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
#!/usr/bin/perl | |
use warnings; | |
use strict; | |
use File::Find; | |
use File::Spec::Functions qw(rel2abs); | |
use File::Basename; | |
use Cwd; | |
my $dir = dirname(rel2abs($0)); |
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
# You need #import <objc/runtime.h> | |
#ifdef DEBUG | |
void pspdf_swizzle(Class c, SEL orig, SEL new) { | |
Method origMethod = class_getInstanceMethod(c, orig); | |
Method newMethod = class_getInstanceMethod(c, new); | |
if(class_addMethod(c, orig, method_getImplementation(newMethod), method_getTypeEncoding(newMethod))) { | |
class_replaceMethod(c, new, method_getImplementation(origMethod), method_getTypeEncoding(origMethod)); | |
}else { |
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
if ([[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.metakine.handsoff"]) | |
{ | |
NSAlert *alert = [NSAlert alertWithMessageText:@"Letter Opener found \"Hands Off!\" application" | |
defaultButton:@"OK" | |
alternateButton:nil | |
otherButton:nil | |
informativeTextWithFormat:@"Make sure connections to www.creativeinaustria.com are allowed in \"Hands Off!\""]; | |
[alert setIcon:[NSImage imageNamed:OMiCIcon]]; | |
[alert runModal]; | |
} |
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
P a c i f i c S t a n d a r d T i m e | |
file: 50 00 61 00 63 00 69 00 66 00 69 00 63 00 20 00 53 00 74 00 61 00 6E 00 64 00 61 00 72 00 64 00 20 00 54 00 69 00 6D 00 65 00 | |
mem sometimes: 61 63 69 66 69 63 20 53 74 61 6e 64 61 72 64 20 54 69 6d 65 6572 6f67 6972 6e61 6d2f 6e6f 6874 614e 656d 2f73 0 |
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
@interface SomeViewController () | |
// Declare some collection properties to hold the various updates we might get from the NSFetchedResultsControllerDelegate | |
@property (nonatomic, strong) NSMutableIndexSet *deletedSectionIndexes; | |
@property (nonatomic, strong) NSMutableIndexSet *insertedSectionIndexes; | |
@property (nonatomic, strong) NSMutableArray *deletedRowIndexPaths; | |
@property (nonatomic, strong) NSMutableArray *insertedRowIndexPaths; | |
@property (nonatomic, strong) NSMutableArray *updatedRowIndexPaths; | |
@end |
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
{ | |
"storePlatformData": { | |
"product-dv-product": { | |
"results": { | |
"389801252": { | |
"artwork": [ | |
{ | |
"width": 170, | |
"height": 170, | |
"url": "https://is2-ssl.mzstatic.com/image/thumb/Purple118/v4/de/b9/5b/deb95b99-0b17-7713-9a0e-99344ebf4e55/Prod-1x_U007emarketing-85-220-0-5.png/170x170bb.png" |
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)moveToURL:(NSURL *)url completionHandler:(void (^ __nullable)(NSError * __nullable))completionHandler | |
{ | |
NSError *error = nil; | |
NSURL *adjustedURL = nil; | |
if (![[url pathExtension] isEqualToString:@"testextension"]) { | |
adjustedURL = [url URLByAppendingPathExtension:@"testextension"]; | |
} |
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
#!/bin/bash | |
# This script downloads and builds the iOS, tvOS and Mac openSSL libraries with Bitcode enabled | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
# https://gist.github.com/foozmeat/5154962 | |
# Peter Steinberger, PSPDFKit GmbH, @steipete. | |
# Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |