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
| CPVarArgHandling_Index = nil; | |
| va_start = function (args, startIndex) // startIndex instead of parameter name | |
| // isn't great, but is unavoidable since | |
| // they took out argument names in JS 1.3. | |
| // Only way to fix this would be to add it | |
| // to the Obj-J preprocessor. | |
| { | |
| if (startIndex) |
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 my_eval = eval; | |
| (function() { | |
| var x = 5, | |
| y = 5; | |
| eval("var x = 6"); | |
| my_eval("var y = 6"); | |
| console.log(x); // 6 | |
| console.log(y); // 5 | |
| })(); |
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
| CPLogRegister(CPLogPrint); | |
| @import <Foundation/Foundation.j> | |
| @implementation Test : CPObject | |
| { | |
| CPNumber ivar1; | |
| CPNumber ivar2; | |
| } |
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 OS = require("os"); | |
| try | |
| { | |
| OS.command(""); | |
| } | |
| catch (e) | |
| { | |
| OS.command = function(command) | |
| { |
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
| javascript:(function (fname) {var xhr=new XMLHttpRequest();xhr.open("GET", fname, false);xhr.send(null);alert(xhr.responseText);})("file:///path/to/AppController.j") |
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
| javascript:(function(){var parts=String(document.location).split(/\/#?|#/);if(!parts[2].match(/^(wiki\.)?github\.com$/)||!parts[3]||!parts[4]||parts[3]=='inbox'||parts[3]=='dashboard')return;document.location='http://githubissues.heroku.com/#'+[parts[3],parts[4],parts[7]&&parts[7].match(/[0-9]+/)?parts[7]:undefined].join('/');})(); |
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 sh | |
| check_and_exit () { | |
| if [ ! "$?" = "0" ]; then | |
| echo "$1" | |
| exit 1 | |
| fi | |
| } | |
| # Node.JS |
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 DOM = require("browser/dom"); | |
| var doc = (new DOM.DOMParser).parseFromString("<x>abc</x>", "text/xml"); | |
| print(DOM.evaluate("/x/text()", doc).iterateNext().textContent); |
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
| CPDataTest. | |
| addError test=[CPDataTest testPlistObjects] error=TypeError: Result of expression 'object' [null] is not an object. | |
| . | |
| addError test=[CPDataTest testJSONObjects] error=TypeError: Result of expression 'object' [null] is not an object. | |
| CPDateTest....... | |
| CPDictionaryTest............ | |
| addError test=[CPDictionaryTest testKeyEnumerator] error=TypeError: Result of expression 'object' [null] is not an object. | |
| . | |
| addError test=[CPDictionaryTest testObjectEnumerator] error=TypeError: Result of expression 'object' [null] is not an object. |
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
| $ NARWHAL_ENGINE=node NARWHAL_ENGINE_HOME=packages/narwhal-node bin/js -:: | |
| /Users/paul/Documents/Work/280North/static/narwhal/packages/narwhal-node/bin/narwhal-node: line 28: 37455 Segmentation fault $NARWHAL "$NODE_HOME"/bootstrap.js "$@" |