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
- ( id ) methodWithOneParam:( id ) theParam { | |
// Do amazing stuff | |
return @"Srsly, Amazing!"; | |
} | |
- ( id ) methodWithFirst:( id ) firstParam | |
andSecond:( id ) secondParam | |
{ | |
// Do doubly amazing stuff |
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/env python | |
import sys | |
import collections | |
# Bag em | |
cipher_file = open( sys.argv[ 1 ], 'rb') | |
cipher_text = cipher_file.read() | |
# remove all non alpha and whitespace and force uppercase |
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
// http://wordpress.org/support/topic/wp_get_archives-highlight-current-archive-please | |
/* Add a class to the archive link if it is the current one | |
so we can, e.g. highlight it */ | |
function theme_get_archives_link( $link_html ) { | |
global $wp; | |
static $current_url; |
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> | |
@interface HTTPMessage : NSObject | |
@property (nonatomic, readonly) CFHTTPMessageRef request; | |
- ( BOOL ) isRequestComplete:(NSData *) append_data; | |
@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
#import <Foundation/Foundation.h> | |
@interface Invoker : NSObject | |
+ ( NSValue * ) invoke:( SEL ) selector onTarget:( id ) target, ...; | |
@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
#import <Foundation/Foundation.h> | |
@interface SomeObject : NSObject | |
- (NSObject*) someMethodWithAchar:(char) aChar | |
anInt:(int) anInt | |
aFloat:(float) aFloat | |
aString:(NSString*) aString; | |
@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
#import <Foundation/Foundation.h> | |
#import <Foundation/Foundation.h> | |
#import <objc/message.h> | |
@interface AmazingClass : NSObject | |
- ( void ) doMultipleAmazingStuff; | |
@end | |
@implementation AmazingClass |
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> | |
#import <ifaddrs.h> | |
#import <net/if.h> | |
#import <SystemConfiguration/CaptiveNetwork.h> | |
@interface SMTWiFiStatus : NSObject | |
- (BOOL) isWiFiEnabled; | |
- (BOOL) isWiFiConnected; |
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/python | |
import sys | |
import os | |
import csv | |
import string | |
if len( sys.argv ) < 2 : | |
sys.stderr.write( sys.argv[ 0 ] + | |
": usage - " + |
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/env python | |
# topgrossingfreeapps.py [country code] | |
# us, gb, ch, etc | |
# quick and dirty python script to grab the percentage | |
# of top grossing aps in a given app store which are | |
# currently free | |
import feedparser |
NewerOlder