- install homebrew
- place
autoconf.rbinto 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
| ################################ | |
| # 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
| /* 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
| 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
| var arr = ["yea, yea", "we knew this worked"]; | |
| var [a, b] = arr; | |
| // a == "yea, yea" | |
| // b == "we knew this worked" |
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 from your error console. WARNING: removes tabs from their existing groups! */ | |
| var Cc = Components.classes; | |
| var Ci = Components.interfaces; | |
| var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); | |
| var winEnum = wm.getEnumerator("navigator:browser"); | |
| while (winEnum.hasMoreElements()) { | |
| var win = winEnum.getNext(); | |
| win.TabView._initFrame(function() { | |
| var contentWindow = win.TabView._window; | |
| contentWindow.UI.reset(); |
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 from your error console */ | |
| var Cc = Components.classes; | |
| var Ci = Components.interfaces; | |
| var ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore); | |
| var wm = Cc["@mozilla.org/appshell/window-mediator;1"].getService(Ci.nsIWindowMediator); | |
| var winEnum = wm.getEnumerator("navigator:browser"); | |
| while (winEnum.hasMoreElements()) { | |
| var win = winEnum.getNext(); | |
| ["tabview-group", "tabview-groups", "tabview-ui", "tabview-visibility"].forEach(function(v) { | |
| try { |
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
| git diff `git merge-base HEAD master` |
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
| var latestTweetRequest = Request({ | |
| url: "http://api.twitter.com/1/statuses/public_timeline.json", | |
| onComplete: function () { | |
| var tweet = this.response.json[0]; | |
| console.log("User: " + tweet.user.screen_name); | |
| console.log("Tweet: " + tweet.text); | |
| } | |
| }); | |
| // Be a good consumer and check for rate limiting before doing more. | |
| 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
| Array.prototype.oldPush = Array.prototype.push; | |
| Array.prototype.push = function(val) { | |
| if (this.length > 3) | |
| alert("wtfbbq - " + this); | |
| this.oldPush(val); | |
| }; | |
| var foo = []; | |
| var bar = [1,2,3,4,5]; | |
| for (var i = 0; i < bar.length; i++) { |