Skip to content

Instantly share code, notes, and snippets.

# ===========================================================================
# Project: Todos
# ===========================================================================
# Add initial buildfile information here
config :all, :required => :sproutcore
# SET UP PROXY
proxy "/task", :to => "localhost:8000"
proxy "/tasks", :to => "localhost:8000"
didCreateTask: function(response, store, storeKey) {
if (SC.ok(response)) {
var data = response.get("body").content;
store.dataSourceDidComplete(storeKey, data, data.guid); // update url
} else store.dataSourceDidError(storeKey, response);
},
// ==========================================================================
// Project: RsvpClient.ListItemView
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals RsvpClient */
/** @class
(Document Your View Here)
exampleView: SC.View.design({
childViews: "label".w(),
label: SC.LabelView.design({
layout: {left:10, right:10, height:18,centerY:0},
valueBinding: ".parentView.content.name",
isEditable: YES,
fontWeight: SC.FONT_WEIGHT_BOLD,
inlineEditorDidFinish: function(){ alert("test"); }
}),
isDropTarget: YES,
// ==========================================================================
// Project: Dictionary.Word Fixtures
// Copyright: ©2009 My Company, Inc.
// ==========================================================================
/*globals Dictionary */
sc_require('models/word');
Dictionary.Word.FIXTURES = [
{ guid: 1,
.toolbar .searchBox .border {
-webkit-appearance: searchfield;
border: 2px solid black;
margin-top:-3px;
-webkit-border-radius: 5px;
}
.toolbar. .searchBox input { background-color:transparent; }
.toolbar .searchBox { background-color:transparent; }
tests/core/beget.js
tests/core/clone.js
tests/core/compare.js
tests/core/console.js
INFO: "Console.info is working"
WARN: "Console.warn is working"
ERROR: "Console.error is working"
tests/core/guidFor.js
tests/core/inspect.js
tests/core/isArray.js
from django.http import HttpResponse
from django.http import Http404
from cornelius import dudley
import datetime
import random
import re, string
try: import simplejson as json
except ImportError: import json
@ialexi
ialexi / foo.css
Created January 6, 2010 03:53 — forked from sproutit/foo.css
// theme specified in an argument to builder
// becomes .sc-view.sc-button-view.ace.light
@view(sc-button-view) {
border: none;
padding: none;
}
// becomes .sc-view.sc-button-view.ace.light .left
@view(sc-button-view) .left {
SC.PoolableClass = {
isPooled: YES,
_objectPool: [],
maxPoolSize: 100,
_pool_default_concat_values: {}, // default values for concatenated properties
create: function() {
// first, check pool