This file contains 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
// ========================================================================== | |
// Project: Animate | |
// Copyright: ©2009 Alex Iskander | |
// Now in fancy GitHub repository: http://github.com/ialexi/animate | |
// ========================================================================== | |
/*globals Animate */ | |
/** @namespace | |
A simple mixin called Animatable is provided. What does it do? | |
It makes CSS transitions for you, and if they aren't available, |
This file contains 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
myForm: SC.FormView.design({ | |
layout: { top: 0, left: 0, right: 0, bottom: 40 }, | |
rows: 'name gender'.w(), | |
contentBinding: "MyApp.fooController", | |
// if row gets a class as a first argument, it conveniently sets up a structure | |
// like the following, but with only one field. | |
name: SC.FormView.row({ | |
fields: "firstName lastName".w(), | |
fieldLabel: "Name:", |
This file contains 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
didUpdateLayer: function() | |
{ | |
sc_super(); | |
var layer = this.get("layer"); | |
if (!layer) return; | |
var ows = layer.style.whiteSpace, opos = layer.style.position, ow = layer.style.width, | |
oh = layer.style.height; | |
This file contains 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
// ========================================================================== | |
// Project: RsvpClient.RsvpDataSource | |
// Copyright: ©2009 My Company, Inc. | |
// ========================================================================== | |
/*globals RsvpClient */ | |
sc_require("models/contact"); | |
RsvpClient.SORT_PRIORITY = "isAttending DESC,hasResponded DESC,hasVisited DESC,lastName,firstName"; |
This file contains 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
{ | |
"repeat": "x", | |
"repeat-width": 32 | |
} |
This file contains 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
config_path = os.path.join(set_path, "config.json") | |
if os.path.exists(config_path): | |
try: | |
print "About to open file" | |
config_file = open(config_path) | |
print "About to read file" | |
config_content = config_file.read() | |
print "File content: " | |
print config_content | |
config.update(json.loads(config_content)) |
This file contains 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
def raw(self): | |
struct = { | |
"guid": self.pk, | |
"firstName": self.firstName, | |
"lastName": self.lastName, | |
"addressAs": self.addressAs, | |
"email": self.email, | |
"isAttending": self.isAttending, | |
"isBringingGuest": self.bringingGuest, | |
"guestName": self.guestName, |
This file contains 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
_hashFor: function(target, action) { | |
var hash = SC.guidFor(target); | |
if (SC.typeOf(action) == SC.T_STRING) { | |
hash += "::" + action; | |
} else hash += SC.guidFor(action); | |
return hash; | |
}, |
This file contains 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
// ========================================================================== | |
// Project: RsvpClient.contactsFilterController | |
// Copyright: ©2009 My Company, Inc. | |
// ========================================================================== | |
/*globals RsvpClient */ | |
/** @class | |
@extends SC.Object | |
*/ |
This file contains 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
import urllib, urllib2 | |
HOST = "localhost" | |
PORT = 8003 | |
class CorneliusError: pass | |
def update(path, message): | |
global HOST, PORT | |
result = urllib2.urlopen("http://" + HOST + ":" + str(PORT) + "/" + urllib.quote(path + ";" + message)) | |
res = result.read() |
OlderNewer