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
| class Shitty(AdProvider): | |
| source = 'shitty' | |
| def get_data(self): | |
| raise Exception('This ad provider is shitty... it always throws an exception') |
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 boto | |
| conn = boto.connect_dynamodb() | |
| def put_items(items_to_put): | |
| for table, puts in items_to_put.iteritems(): | |
| while(len(puts) > 0): | |
| unprocessed_items = [] | |
| for i in xrange(0, len(puts), 25): | |
| batch_list = conn.new_batch_write_list() |
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
| -- | |
| -- Database: `infmos` | |
| -- | |
| -- -------------------------------------------------------- | |
| -- | |
| -- Table structure for table `infmos` | |
| -- | |
NewerOlder