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
# If we are in a Development folder, we're probably in a virtual env. Try to activate it based on our CWD. | |
IN=$PWD | |
if [[ "$IN" == */Development/* ]] | |
then | |
arrIN=(${IN//// }) | |
# This assumes Development is the third token and your project directory is the fourth | |
workon ${arrIN[3]} | |
fi |
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 flask import Flask | |
app = Flask(__name__) | |
import boto | |
from moto import mock_s3 | |
@app.route("/") | |
def hello(): | |
conn = boto.connect_s3('the_key', 'the_secret') | |
bucket = conn.create_bucket('mybucket') |
OlderNewer