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
import os | |
import sys | |
import codecs | |
import argparse | |
parser = argparse.ArgumentParser("Count frequency of letters in ciphertext") | |
parser.add_argument("-i", "--input" , help="input file", | |
action="store") | |
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
/* For iOS, obvs */ | |
#import "AppDelegate.h" | |
#import "TestObj.h" | |
#import "NSObject+invokeSelector.h" | |
@implementation AppDelegate | |
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
#import "TestObj.h" | |
@implementation TestObj | |
-(float) printString:(NSString*) aString | |
aBOOL:(BOOL) aBOOL | |
aBool:(bool) aBool | |
aChar:(char) aChar | |
anInt:(int) anInt | |
andIncrement:(float) aFloat |
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
#import <Foundation/Foundation.h> | |
@interface SomeObject : NSObject | |
- (NSObject*) someMethodWithAchar:(char) aChar | |
anInt:(int) anInt | |
aFloat:(float) aFloat | |
aString:(NSString*) aString; | |
@end |
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
#import <Foundation/Foundation.h> | |
@interface Invoker : NSObject | |
+ ( NSValue * ) invoke:( SEL ) selector onTarget:( id ) target, ...; | |
@end |
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
- ( id ) methodWithOneParam:( id ) theParam { | |
// Do amazing stuff | |
return @"Srsly, Amazing!"; | |
} | |
- ( id ) methodWithFirst:( id ) firstParam | |
andSecond:( id ) secondParam | |
{ | |
// Do doubly amazing stuff |
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
#import <Foundation/Foundation.h> | |
#import "HttpService.h" | |
@implementation WebService { | |
HttpService * _service; | |
} | |
- ( HTTPResponse * ) GET:( HTTPRequest * ) request { |
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
#import <Foundation/Foundation.h> | |
#import <Foundation/Foundation.h> | |
#import <objc/message.h> | |
@interface AmazingClass : NSObject | |
- ( void ) doMultipleAmazingStuff; | |
@end | |
@implementation AmazingClass |
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
import web | |
urls = ( | |
'/', 'index' | |
) | |
class index: | |
def GET (self): | |
return "Post some data!" |
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
#import <Foundation/Foundation.h> | |
@interface HTTPMessage : NSObject | |
@property (nonatomic, readonly) CFHTTPMessageRef request; | |
- ( BOOL ) isRequestComplete:(NSData *) append_data; | |
@end |