- Labels Detection
- Faces Detection
- Faces Comparison
- Faces Indexing
- Faces Search
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
#!/usr/bin/env python | |
import argparse | |
import redis | |
def connect_redis(conn_dict): | |
conn = redis.StrictRedis(host=conn_dict['host'], | |
port=conn_dict['port'], | |
db=conn_dict['db']) | |
return conn |
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
exports.handler = (event, context, callback) => { | |
var AWS = require('aws-sdk'); | |
var cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider(); | |
console.log(event); | |
if (event.request.userAttributes.hasOwnProperty("email")) { |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type CurrencySchema struct { | |
Code string | |
Name string |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type CurrencySchema struct { | |
Code string | |
Name string | |
Type string |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type CurrencySchema struct { | |
Code string | |
Name string | |
Type string |
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
const AWS = require('aws-sdk'); | |
var params = { | |
IdentityPoolId: "ap-southeast-1:xxxx" | |
}; | |
AWS.config.region = 'ap-southeast-1'; | |
AWS.config.credentials = new AWS.CognitoIdentityCredentials(params); | |
var lambda = new AWS.Lambda(); | |
lambda.invoke({ |
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
pragma solidity ^0.4.22; | |
contract Hackathon{ | |
address public owner; | |
enum Status {PENDING,APPROVED,REJECTED} | |
string public request_id; | |
string public owner_public_key; | |
string public requestor_public_key; | |
Status public status; |
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
gem install mysql2 -- \ | |
--with-mysql-config=/Applications/XAMPP/xamppfiles/bin/mysql_config \ | |
--with-mysql-dir=/Applications/XAMPP/xamppfiles/mysql/ \ | |
--with-mysql-lib=/Applications/XAMPP/xamppfiles/lib/mysql/ \ | |
--with-mysql-include=/Applications/XAMPP/xamppfiles/include/ \ | |
--no-ri --no-rdoc | |
gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.6/bin/pg_config |
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 __future__ import print_function | |
import boto3 | |
from decimal import Decimal | |
import json | |
import urllib | |
print('Loading function') | |
rekognition = boto3.client('rekognition') |