Skip to content

Instantly share code, notes, and snippets.

View erichocean's full-sized avatar

Erich Ocean erichocean

  • Xy Group Ltd
  • North Carolina
View GitHub Profile
/* @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
function p_ES5_Identifier(s, p) {
}
Parsing this:
var x;
Produces this parse tree:
[true
,[0 Program
,6
,[[6 FormalParameterList
<!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>
<!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>
/*
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
/*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,
// 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;
});
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)
@erichocean
erichocean / issues.hub.js
Created April 14, 2010 04:35
issues.hub.js
//
// Model layer
//
// Namspace and API
Issues = hub.Object.create({
store: hub.Hub.create({
uti: 'com.hub.demo.web',
commitRecordsAutomatically: true