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
/* @license ========================================================================== SproutCore Costello -- Property Observing Library Copyright ©2006-2009, Sprout Systems, Inc. and contributors. Portions copyright ©2008-2009 Apple Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRI |
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 p_ES5_Identifier(s, p) { | |
} |
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
Parsing this: | |
var x; | |
Produces this parse tree: | |
[true | |
,[0 Program | |
,6 | |
,[[6 FormalParameterList |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Hub Demo</title> | |
<style type="text/css" media="screen"> | |
</style> |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Hub Demo</title> | |
<style type="text/css" media="screen"> | |
</style> |
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
/* | |
Copyright (c) 2009 Alexander Teinum | |
Permission is hereby granted, free of charge, to any person | |
obtaining a copy of this software and associated documentation | |
files (the "Software"), to deal in the Software without | |
restriction, including without limitation the rights to use, | |
copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the |
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
/*globals exports */ | |
var sys = require("sys"); | |
exports.sendKeys = function(connection, packs) { | |
connection.send('\u0000' + JSON.stringify(packs.ids) + '\uffff'); | |
} ; | |
exports.handleData = function(client, data, params) { | |
var connection = client.socket, |
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
// Based on: | |
// http://github.com/alexanderte/websocket-server-node.js | |
// http://github.com/Guille/node.websocket.js | |
function nano(template, data) { | |
return template.replace(/\{([\w\.]*)}/g, function (str, key) { | |
var keys = key.split("."), value = data[keys.shift()]; | |
keys.forEach(function (key) { value = value[key] }); | |
return value; | |
}); |
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
Undefined symbols: | |
".objc_class_name_NSApplication", referenced from: | |
literal-pointer@__OBJC@__cls_refs@NSApplication in libSDLmain.a(SDLMain.o) | |
"_CPSGetCurrentProcess", referenced from: | |
_main in libSDLmain.a(SDLMain.o) | |
"_CFBundleGetInfoDictionary", referenced from: | |
_main in libSDLmain.a(SDLMain.o) | |
"_objc_msgSend", referenced from: | |
-[SDLMain application:openFile:] in libSDLmain.a(SDLMain.o) | |
-[SDLMain applicationDidFinishLaunching:] in libSDLmain.a(SDLMain.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
// | |
// Model layer | |
// | |
// Namspace and API | |
Issues = hub.Object.create({ | |
store: hub.Hub.create({ | |
uti: 'com.hub.demo.web', | |
commitRecordsAutomatically: true |