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
import dropbox | |
from chalice import Chalice | |
app = Chalice(app_name='chalicetest') | |
@app.route('/') | |
def index(): | |
return {'hello': 'world'} |
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
import random | |
kids = ['Brenna', 'Quinn'] | |
random.choice(kids) |
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
create or replace function array_remove(a anyarray, e anyelement) returns anyarray as $$ | |
BEGIN | |
return array( | |
select x from unnest(a) x where x <> e | |
); | |
END; | |
$$ LANGUAGE plpgsql; |