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
var fs = require('fs'), | |
http = require('http'); | |
var Promise = function(values) { | |
this._callbacks = []; | |
this._errbacks = []; | |
if (arguments.length > 0) { | |
this.fulfill.apply(this, values); | |
} | |
} |
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
var readline = require('readline'), | |
fs = require('fs'); | |
var LinkMap = function(filePath) { | |
this.files = [] | |
this.filePath = filePath | |
} | |
LinkMap.prototype = { | |
start: function(cb) { |
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
@implementation SDImageCache | |
... | |
+ (void)changeDefaultCacheDiskToDocument | |
{ | |
Method origMethod = class_getInstanceMethod(self, @selector(initWithNamespace:)); | |
Method replaceMethod = class_getInstanceMethod(self, @selector(initWithNamespaceInDocument:)); | |
if (origMethod && replaceMethod) { | |
method_exchangeImplementations(origMethod, replaceMethod); | |
} | |
} |
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([argumentsList count] == 1) { | |
results = new_msgSend1(sender, selector, getArgument([argumentsList objectAtIndex:0])); | |
} else if([argumentsList count] == 2) { | |
if(numberOfArguments == 1) { | |
results = new_msgSend1(sender, selector, getArgument([argumentsList objectAtIndex:0]), getArgument([argumentsList objectAtIndex:1])); | |
} else if(numberOfArguments == 2){ | |
results = new_msgSend2(sender, selector, getArgument([argumentsList objectAtIndex:0]), getArgument([argumentsList objectAtIndex:1])); | |
} | |
} else if([argumentsList count] == 3) { |