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 "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
/* 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 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
<?php | |
function tokeniseString( $string ) { | |
$regex = "/([[:space:]]+)|([[:punct:]])/"; | |
$opts = PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY; | |
$toks = preg_split( $regex, $string, -1, $opts ); | |
return $toks; | |
} |
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
<?php | |
// ... | |
function eschtml_func( $atts, $content = null ) { | |
return htmlentities( $content ); | |
} | |
add_shortcode( 'eschtml', 'eschtml_func' ); | |
?> |
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
#!/usr/bin/env python | |
import collections | |
import sys | |
nums = sys.argv[1:] | |
def factors_of( x ): | |
factors = [] | |
n = x-1 |
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
#!/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 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
<?php | |
/* | |
Plugin Name: FU Smart Quotes | |
Plugin URI: https://gist.github.com/4682690 | |
Description: Disable smart quotes | |
Version: 1.0 | |
Author: Steve Trewick | |
Author URI: http://www.enigmaticape.com/blog/the-smallest-possible-wordpress-plugin/ | |
License: Public Domain | |
*/ |
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 Appcast : NSObject | |
+ ( id ) instance; | |
+ (void) post:(NSString *) message; | |
@end |