- install homebrew
- place
autoconf.rb
into Formula folder:/usr/local/Library/Formula/
- run
brew install autoconf
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
void | |
test_PrototypeInScript() | |
{ | |
HandleScope handle_scope; | |
Persistent<Context> context = Context::New(); | |
Context::Scope context_scope(context); | |
Local<Object> obj; | |
Local<FunctionTemplate> obj_tmpl = FunctionTemplate::New(); |
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
/* Run this in your error console */ | |
var wc=0, tc=0, tgc=0; | |
var {classes: Cc, interfaces: Ci, utils: Cu} = Components; | |
Cu.import("resource://gre/modules/Services.jsm"); | |
Cu.import("resource://gre/modules/DownloadUtils.jsm"); | |
var wm = Services.wm; | |
var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore); | |
var e = wm.getEnumerator("navigator:browser"); | |
var uc = { }; | |
while (e.hasMoreElements()) { |
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
################################ | |
# UUIDGen Module # | |
################################ | |
# "uuidgen" should be installed on the path somewhere. | |
# you can get the source of uuidgen from CVS, see: | |
# http://lxr.mozilla.org/mozilla/source/webtools/mozbot/uuidgen/ | |
package BotModules::UUIDGen; | |
use vars qw(@ISA); |
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
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp | |
index afa2125..2afdbb8 100644 | |
--- a/js/src/jsobj.cpp | |
+++ b/js/src/jsobj.cpp | |
@@ -7230,7 +7230,6 @@ dumpValue(const Value &v) | |
fprintf(stderr, "false"); | |
} else if (v.isMagic()) { | |
fprintf(stderr, "<invalid"); | |
-#ifdef DEBUG | |
switch (v.whyMagic()) { |
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
function datediff(aDate1, aDate2) { | |
var diff = Math.abs(aDate2 - aDate1); | |
var milliseconds = diff % 1000; | |
var seconds = Math.floor(diff / 1000 % 60); | |
var minutes = Math.floor(diff / (1000 * 60) % 60); | |
var hours = Math.floor(diff / (1000 * 60 * 60) % 24); | |
var days = Math.floor(diff / (1000 * 60 * 60 * 24) % 365); | |
return [ |
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
diff --git a/js/src/jsobj.cpp b/js/src/jsobj.cpp | |
index afa2125..2afdbb8 100644 | |
--- a/js/src/jsobj.cpp | |
+++ b/js/src/jsobj.cpp | |
@@ -7230,7 +7230,6 @@ dumpValue(const Value &v) | |
fprintf(stderr, "false"); | |
} else if (v.isMagic()) { | |
fprintf(stderr, "<invalid"); | |
-#ifdef DEBUG | |
switch (v.whyMagic()) { |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
// Override point for customization after application launch. | |
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { | |
self.mainViewController = [[ZMainViewController alloc] initWithNibName:@"ZMainViewController_iPhone" bundle:nil]; | |
} else { | |
self.mainViewController = [[ZMainViewController alloc] initWithNibName:@"ZMainViewController_iPad" bundle:nil]; | |
} | |
self.window.rootViewController = self.mainViewController; |
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
function makeObj(freeze) { | |
var o = { | |
foo: "bar", | |
doit: function() { | |
console.log(this.foo); | |
} | |
} | |
if (freeze) | |
Object.freeze(o); |
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 coffee | |
request = require "request" | |
fs = require "fs" | |
TARGET_DIR = "./_posts" | |
PHOTO_SIZE = 1280 | |
url = "http://blog.zpao.com/api/read?format=json&filter=none&num=50" |