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 boto3 | |
option_table = boto3.resource('dynamodb').Table('options') | |
vote_table = boto3.resource('dynamodb').Table('votes') | |
def build_response(message, message_type="Close", session_attributes=None): | |
resp = { | |
"dialogAction": { | |
"type": message_type, | |
"message": { | |
"contentType": "PlainText", |
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
from __future__ import print_function | |
import base64 | |
import json | |
import logging | |
import urllib | |
import boto3 | |
from flask import Flask, redirect, session, url_for, jsonify | |
from flask_oauthlib.client import OAuth | |
import requests | |
ssm = boto3.client('ssm') |
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 base64 | |
import os | |
import boto3 | |
s3 = boto3.client('s3') | |
rek = boto3.client('rekognition') | |
CONFIDENCE = os.getenv('CONFIDENCE', 50.0) | |
def lambda_handler(event, context): | |
if not event.get('operation') == 'rate': | |
raise Exception("Bad Request") | |
resp = rek.detect_moderation_labels( |
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
From 1de4d33ed859cb28df386fffbbd784a8b25ad15e Mon Sep 17 00:00:00 2001 | |
From: EC2 Default User <ec2-user@ip-172-31-38-161.ec2.internal> | |
Date: Thu, 27 Apr 2017 21:10:55 +0000 | |
Subject: [PATCH 1/1] screwing around with arm | |
--- | |
makefile | 21 +++++++++++++++++++++ | |
1 file changed, 21 insertions(+) | |
diff --git a/makefile b/makefile |
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
from __future__ import print_function | |
import base64 | |
import json | |
import logging | |
import urllib | |
import boto3 | |
from flask import Flask, redirect, session, url_for, jsonify | |
from flask_oauthlib.client import OAuth | |
import requests | |
ssm = boto3.client('ssm') |
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
from base64 import b64encode, b64decode | |
from hashlib import sha256 | |
import hmac | |
import json | |
import twitter | |
import os | |
import boto3 | |
lex = boto3.client('lex-runtime') | |
CONSUMER_KEY = os.getenv('CONSUMER_KEY') |
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 io | |
import os | |
import pprint | |
import boto3 | |
import cv2 | |
import numpy as np | |
from PIL import Image, ImageOps | |
from skimage import img_as_float | |
from skimage.measure import compare_ssim as ssim |
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 os | |
import boto3 | |
from flask import Flask, redirect, session | |
from flask_oauthlib import OAuth | |
import requests | |
app = Flask(__name__) | |
oauth = OAuth(app) | |
twitch = oauth.remote_app( |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.