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
| { | |
| "terraform_version": "1.5.0", | |
| "serial": 1, | |
| "lineage": "3c77e9e7-0d23-9db4-4b42-4e12d0d531b4", | |
| "version": 4 | |
| } |
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
| Building resource 'HelloWorldFunction' | |
| Build Failed | |
| Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations : ['/Users/srirammv/workspace/python_versions/play/bin/python', '/usr/bin/python'] which did not satisfy constraints for runtime: python3.8. Do you have python for runtime: python3.8 on your PATH? |
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
| ~/aws_sam_/aws-sam-cli package_off_awscli *18 ❯ SAM_CLI_DEV=1 pytest -vv tests/regression ⇶ Py package_venv Py 3.7.0 Ruby 2.5.0 | |
| =================================================================== test session starts =================================================================== | |
| platform darwin -- Python 3.7.4, pytest-5.2.1, py-1.8.0, pluggy-0.13.0 -- /Users/srirammv/aws_sam_cli_WS/package_venv/bin/python3.7 | |
| cachedir: .pytest_cache | |
| rootdir: /Users/srirammv/aws_sam_cli_WS/aws-sam-cli, inifile: pytest.ini | |
| plugins: cov-2.7.1, forked-1.1.3, rerunfailures-7.0, timeout-1.3.3, xdist-1.30.0 | |
| collected 42 items | |
| tests/regression/package/test_package_regression.py::TestPackageRegression::test_package_with_output_template_file_00_aws_serverless_function_yaml PASSED [ 2%] | |
| tests/regression/package/test_package_regression.py::TestPackageRegression::test_package_with_output_template_file_01_aws_serverless_api_yaml PASSED [ 4%] |
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
| =================================================================== test session starts =================================================================== | |
| platform darwin -- Python 3.7.4, pytest-5.2.1, py-1.8.0, pluggy-0.13.0 -- /Users/srirammv/aws_sam_cli_WS/package_venv/bin/python3.7 | |
| cachedir: .pytest_cache | |
| rootdir: /Users/srirammv/aws_sam_cli_WS/aws-sam-cli, inifile: pytest.ini | |
| plugins: cov-2.7.1, forked-1.1.3, rerunfailures-7.0, timeout-1.3.3, xdist-1.30.0 | |
| collected 79 items | |
| test_package_command.py::TestPackage::test_package_barebones_00_aws_serverless_function_yaml PASSED [ 1%] | |
| test_package_command.py::TestPackage::test_package_barebones_01_aws_serverless_api_yaml PASSED [ 2%] | |
| test_package_command.py::TestPackage::test_package_barebones_02_appsync_graphqlschema_yaml PASSED [ 3%] |
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
| In [3]: def validate(func): | |
| ...: def wrapper(*args, **kwargs): | |
| ...: if kwargs['a'] < 0 and kwargs['b'] < 0: | |
| ...: raise ValueError("No Negatives!") | |
| ...: else: | |
| ...: func(*args,**kwargs) | |
| ...: return wrapper | |
| ...: | |
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
| https://gist.github.com/kunalgrover05/b960643679a4417eac0db240d8b6f352 | |
| import java.util.List; | |
| import java.util.Optional; | |
| import java.util.concurrent.CompletableFuture; | |
| import java.util.concurrent.Executor; | |
| import java.util.concurrent.RejectedExecutionException; | |
| import java.util.function.Supplier; | |
| /** |
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 collections import deque | |
| class BinarySearchTree(object): | |
| def __init__(self, data, parent=None): | |
| self.data = data | |
| self.left = None | |
| self.right = None | |
| self.parent = parent |
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
| def reset_block_status(self, projectid, vault_id, marker=None, limit=None): | |
| # NOTE(TheSriram): the projectid needs to be explicitly passed in, | |
| # as when the callback is called, on future completion, there is | |
| # a switching of threads. Therefore, access to deuce.context.projectid | |
| # is lost, as it is present in thread local storage. | |
| def mark_block_as_good(results, projectid, limit): | |
| def on_result(results, vaultid, projectid, blockid): |
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
| def helper_create_blocks(num_blocks, async=False, | |
| singleblocksize=False, blocksize=100): | |
| import hashlib | |
| import msgpack | |
| import os | |
| import requests | |
| from random import randrange | |
| min_size = 1 | |
| max_size = 2000 | |
| if singleblocksize: |
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
| cd deuce_dev | |
| mkdir $1 | |
| cd $1 | |
| mkdir $1"_py3env" | |
| virtualenv -p /usr/local/bin/python3.4 $1"_py3env" | |
| source $1"_py3env"/bin/activate | |
| git clone https://github.com/TheSriram/deuce | |
| cd deuce | |
| pip install ipython | |
| git remote add upstream https://github.com/rackerlabs/deuce |
NewerOlder