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
;h(n) = 2^(h(n-1)) defined iteratively. | |
(define (h-iter-aux num prod count) | |
(if (= count 1) | |
prod | |
(h-iter-aux num (expt num prod) (- count 1)))) | |
(define (h-iter n) | |
(if (= n 0) | |
0 |
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/python | |
import sys | |
import os | |
import csv | |
import string | |
if len( sys.argv ) < 2 : | |
sys.stderr.write( sys.argv[ 0 ] + | |
": usage - " + |
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
// 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 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 |
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> | |
#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 <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
- ( 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> | |
@interface Invoker : NSObject | |
+ ( NSValue * ) invoke:( SEL ) selector onTarget:( id ) target, ...; | |
@end |