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
{ | |
"maxConcurrentManipulations": 2, | |
"maxConcurrentProxyStreams": 2, | |
"port": 3000, | |
"buckets": { | |
"default": { | |
"originalsS3Bucket": "com-athlete-ezimg", | |
"manipulationsS3Bucket": "com-athlete-ezimg", | |
"allowWrite": true, | |
"originalKeyFormat": "{bucket}/originals/{imgId}", |
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
from tastypie.http import HttpUnauthorized | |
class MultiAuthentication(object): | |
""" | |
An authentication backend that tries a number of backends in order. You may specify using the and_ kwarg | |
whether or not all backends must authenticate the user or if authentication should stop after the first success. | |
It defaults to False, meaning that only one authentication backend must return True. | |
For example, let's say you have three classes: | |
MyAuth1 |
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
var npm = require('npm'), | |
stream = require('stream'); | |
cmdOutStream = new stream.WriteableStream(); | |
cmdOutStream.on('data', function(data) { | |
console.log('found some data: ' + data); | |
}); | |
cmdOutStream.on('end', function() { | |
console.log('found end'); | |
}); |