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
| __author__ = 'leonmax' | |
| ''' | |
| You are given a SAFE, with 4 dials on it | |
| dials are numbered 0-9, continuous, integral | |
| key to this safe -> can *only* be opened in the | |
| fewest number of turns |
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
| __author__ = 'leonmax' | |
| import asyncio | |
| from asyncio import (coroutine, subprocess) | |
| import sys | |
| import logging | |
| FORMAT = '%(asctime)s - %(name)s - %(levelname)s - %(message)s' | |
| logging.basicConfig(level=logging.INFO, format=FORMAT) |
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 AWS = require('aws-sdk'); | |
| var s3 = new AWS.S3(); | |
| var getUrl = function(bucket, path, callback) { | |
| var params = {Bucket: bucket, Key: path}; | |
| s3.getSignedUrl('getObject', params, callback); | |
| } |
NewerOlder