This file contains hidden or 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
# Order class | |
# see http://www.slideshare.net/wonko/persisting-dynamic-data-with-mongodb-and-mongomapper | |
class Order | |
include MongoMapper::Document | |
key :order_id, String | |
class << self | |
def for_site(site) | |
klass = Class.new(self) |
This file contains hidden or 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
<script src="/javascripts/jquery.resize.js"></script> | |
<script> | |
$('.agency_talent_photo').resize(150); | |
</script> |
This file contains hidden or 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 tornado.options | |
import urllib2 | |
import json | |
from tornado.options import define, options | |
if __name__ == "__main__": | |
define("username", help="Your Sendgrid username (usually an email address)") | |
define("password", help="Your Sendgrid password") |
NewerOlder