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
<li> | |
<a href='#' data-entryid='{{entryid}}''> | |
<img class='pull-left fbicon' | |
src = 'http://graph.facebook.com/{{from.facebookid}}/picture?type=square' | |
title='{{name}}'> | |
<div> | |
<div>{{msg}}</div> | |
<div class='help-block'>{{timestamp_pretty}}</div> | |
</div> | |
</a> |
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
.hero-unit { | |
padding: 60px; | |
margin-bottom: 30px; | |
background-color: #f5f5f5; | |
.border-radius(6px); | |
text-align: center; | |
h1 { | |
margin-bottom: 0; | |
font-size: 60px; | |
line-height: 1; |
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
#!/usr/bin/env python | |
#coding:utf-8 | |
import sys, os, re | |
import logging | |
from tornado.ioloop import IOLoop | |
from tornado.iostream import IOStream | |
from tornado.netutil import TCPServer |
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
### coffeescript | |
$('#nav_news_feed').click () -> | |
$.get '/api/history', (result) -> | |
alert result | |
## js | |
return $('#nav_news_feed').click(function() { | |
return $.get('/api/history', function(result) { | |
return alert(result); | |
}); |
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
if self.get_cookie( 'use_mobile', "0" ): | |
self.redirect('/mobile/') | |
else: | |
self.redirect('/') |
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
function submit_new_bill() | |
{ | |
// check amount | |
error = false | |
amount = $('#amount').val() | |
errors = [] | |
people = $('#bill_to').val() | |
if( amount <= 0 ) | |
{ |
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
<html xmlns="http://www.w3.org/1999/xhtml" | |
xmlns:fb="https://www.facebook.com/2008/fbml"> | |
<head> | |
<title>Broken invites</title> | |
</head> | |
<!-- url on my dev server: http://localhost:8888/static/fb_test.html --> | |
<body> | |
<div id="fb-root"></div> | |
<script src="http://connect.facebook.net/en_US/all.js"></script> | |
<p> |
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
[program:web-prod] | |
command="bin/run %(process_num)s" | |
autostart=false | |
numprocs=4 | |
numprocs_start=8000 | |
process_name=%(program_name)s-%(process_num)s | |
------------------------------------------------------------ | |
supervisor> status |
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 User(Document): | |
name = StringField() | |
friends = ListField( ReferenceField(User) ) |
NewerOlder