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
Jeremy | |
Absolutely brilliant | |
both technically | |
and oratorically | |
He wrote CoffeeScript | |
1st place 5k | |
21 min, 3 seconds | |
<7min mile | |
Big picture |
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
class ContactsHandler(webapp.RequestHandler): | |
def get(self): | |
# Get user ID from URL | |
user_id = ... | |
# Make query to Datastore | |
data = query(user_id, ...) | |
# Encode to JSON | |
jsonObject = jsonEncode(data) | |
self.response.headers['Content-Type'] = 'application/json' | |
self.response.out.write(jsonObject) |
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
- (void)objectLoader:(RKObjectLoader*)objectLoader didLoadObjects:(NSArray*)objects { | |
[[NSUserDefaults standardUserDefaults] setObject:[NSDate date] forKey:@"LastUpdatedAt"]; | |
[[NSUserDefaults standardUserDefaults] synchronize]; | |
NSLog(@"Loaded statuses: %@", objects); | |
[self loadObjectsFromDataStore]; | |
[_tableView reloadData]; | |
} | |
- (void)loadObjectsFromDataStore { | |
[_statuses release]; |
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
{ | |
"type": "List", | |
"per_page": 30, | |
"objects": [ | |
{ | |
"Conversation": { | |
"name": "More Professional? Maybe...maybe not...", | |
"simple": false, | |
"recent_comment_ids": [ |
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
[ | |
{ | |
"department": "Managua", | |
"reports" : [ | |
{ | |
"crop": "cassava", | |
"price": 100, | |
}, | |
{ | |
"crop": "mango", |
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
{% extends 'base.html' %} | |
{% block content %} | |
<div class="six columns centered signupbox"> | |
<h1>Login</h1> | |
<form method="post" action=""> | |
{% if form.errors.authenticate %}<div class="alert-box error">{{ form.errors.authenticate }}</div>{% endif %} | |
{% csrf_token %} | |
{{ form.as_p }} | |
<input type="submit" class="nice large radius blue button" value="Login" /><br/> | |
</form> |
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
>> gondor deploy primary master | |
Archiving code from master... [ok] | |
Building tarball... [ok] | |
Pushing tarball to Gondor... | |
[##################################100%#####################################] | |
Deploying... [failed] | |
Traceback (most recent call last): | |
File "<stdin>", line 3, in <module> |
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
Counting objects: 11, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (6/6), done. | |
Writing objects: 100% (6/6), 514 bytes, done. | |
Total 6 (delta 5), reused 0 (delta 0) | |
-----> Heroku receiving push | |
-----> Python/Django app detected | |
-----> Preparing Python interpreter (2.7.2) | |
-----> Creating Virtualenv version 1.7 |
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
try: | |
if 'DATABASES' not in locals(): | |
DATABASES = {} | |
if 'DATABASE_URL' in os.environ: | |
url = urlparse.urlparse(os.environ['DATABASE_URL']) | |
# Ensure default database exists. | |
DATABASES['default'] = DATABASES.get('default', {}) |
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
try: | |
from local_settings import * | |
BROKER_TRANSPORT = "redis" | |
BROKER_HOST = GONDOR_REDIS_HOST | |
BROKER_PORT = GONDOR_REDIS_PORT | |
BROKER_VHOST = "0" | |
BROKER_PASSWORD = GONDOR_REDIS_PASSWORD | |
CELERY_RESULT_BACKEND = "redis" | |
CELERY_REDIS_HOST = GONDOR_REDIS_HOST |
OlderNewer