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
//
// Model layer
//
// Namspace and API
Issues = hub.Object.create({
store: hub.Hub.create({
uti: 'com.hub.demo.web',
commitRecordsAutomatically: true
<!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>
/*
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
@erichocean
erichocean / issues.html
Created April 14, 2010 04:36
issues.html
<!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>
@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
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)
// 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;
});
/*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,
/*
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
<!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>