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
localhost - - [22/Jul/2008 15:37:01] code 501, message Unsupported method ('OPTIONS')
localhost - - [22/Jul/2008 15:37:01] "OPTIONS / HTTP/1.1" 501 -
localhost - - [22/Jul/2008 15:37:18] code 501, message Unsupported method ('OPTIONS')
localhost - - [22/Jul/2008 15:37:18] "OPTIONS / HTTP/1.1" 501 -
localhost - - [22/Jul/2008 15:37:27] code 501, message Unsupported method ('GET')
localhost - - [22/Jul/2008 15:37:27] "GET / HTTP/1.1" 501 -
localhost - - [22/Jul/2008 15:37:28] code 501, message Unsupported method ('GET')
localhost - - [22/Jul/2008 15:37:28] "GET /favicon.ico HTTP/1.1" 501 -
localhost - - [22/Jul/2008 15:37:49] code 501, message Unsupported method ('OPTIONS')
localhost - - [22/Jul/2008 15:37:49] "OPTIONS / HTTP/1.1" 501 -
@erichocean
erichocean / sprout-py.vcl
Created July 22, 2008 23:09
sprout-py.vcl
backend sproutcore {
set backend.host = "localhost";
set backend.port = "4020";
}
backend py {
set backend.host = "localhost";
set backend.port = "8000";
}
// ==========================================================================
// Ring.PhoneServerController
// ==========================================================================
require('core');
/** @class
(Document Your View Here)
<% view :contacts do %>
<div id="console"></div>
<h1>Contacts (<%= label_view :contacts_count, :outlet => true, :tag => :span, :bind => { :value => 'Ring.contactsController*content.count'} %>)</h1>
<% scroll_view :contacts_scroll, :outlet => true do %>
<%= list_view :contacts_list, :outlet => true,
:content_value_key => 'firstName',
:bind => { :content => 'Ring.contactsController.arrangedObjects'}
%>
/* Default CSS for welcome page. Delete this styling and replace it with your own. */
.ring_container {
position: absolute ;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
<% content_for('body') do %>
<%= container_view :ring_container, :bind => {:content => 'Ring.containerController*view'} %>
<% end %>
// ==========================================================================
// Ring.Contact Fixtures
// ==========================================================================
require('core') ;
Ring.FIXTURES = Ring.FIXTURES.concat([
// TODO: Add your data fixtures here.
// All fixture records must have a unique guid and a type matching the
// ==========================================================================
// Ring.Contact Fixtures
// ==========================================================================
require('core') ;
Ring.FIXTURES = Ring.FIXTURES.concat([
// TODO: Add your data fixtures here.
// All fixture records must have a unique guid and a type matching the
<% view :contacts do %>
<div id="console"></div>
<h1>Contacts (<%= label_view :contacts_count, :outlet => true, :tag => :span, :bind => { :value => 'Ring.contactsController*content.count'} %>)</h1>
<% scroll_view :contacts_scroll, :outlet => true do %>
<%= list_view :contacts_list, :outlet => true,
:content_value_key => 'firstName',
:bind => {
:content => 'Ring.contactsController.arrangedObjects',
:selection => 'Ring.contactsController.selection'
keyDown: function(evt) {
var nr = this.get('nextResponder') ;
return (nr && nr.keyDown) ? nr.keyDown(evt) : false;
},