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 |
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 Issues Tracker Demo</title> | |
<style type="text/css" media="screen"> | |
</style> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="hub.js"></script> |
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
<!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 Issues Tracker Demo</title> | |
<style type="text/css" media="screen"> | |
</style> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="hub.js"></script> |
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 |
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
// 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
/*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
/* | |
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
<!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> |