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 java.io.IOException; | |
import java.net.URL; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.logging.Level; | |
import org.json.*; | |
import org.openqa.selenium.*; | |
import org.openqa.selenium.chrome.*; | |
import org.openqa.selenium.logging.*; |
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
[tool.poetry] | |
name = "rating-engine" | |
version = "0.1.0" | |
description = "" | |
authors = ["Alex Tonkonozhenko <oleksandr.tonkonozhenko@glomex.com>"] | |
[tool.poetry.dependencies] | |
python = "^3.6" | |
lxml = "^4.2" | |
numpy = "^1.14" |
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
[tool.poetry] | |
name = "dphelper" | |
version = "0.1.6.dev0" | |
description = "" | |
authors = ["Alex Tonkonozhenko <oleksandr.tonkonozhenko@glomex.com>"] | |
[tool.poetry.dependencies] | |
python = "*" | |
psycopg2-binary = "^2.7" | |
glomex-utils = "^0.0" |
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
ARG PYTHON_VERSION | |
FROM lambci/lambda:build-python$PYTHON_VERSION | |
RUN pip install -U pip | |
RUN pip install poetry==1.0.0a2 | |
COPY bin/entrypoint /bin | |
ENV AWS_REGION="eu-west-1" |
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
ARG PYTHON_VERSION | |
FROM {registry_url}/lambda-base-image:$PYTHON_VERSION-0.5.0 | |
RUN curl https://raw.githubusercontent.com/apex/apex/master/install.sh | sh | |
ADD bin/download_terraform.sh /bin | |
RUN /bin/download_terraform.sh |
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 python:3.6-alpine | |
ARG ENV | |
WORKDIR /app | |
RUN pip install -U pip | |
RUN pip install awscli | |
RUN mkdir train && \ | |
aws s3 cp s3://{bucket}/{model_file}.model train/{model_file}.model |
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 ubuntu:18.04 | |
RUN apt-get update && apt-get install \ | |
-y --no-install-recommends python3 python3-virtualenv | |
ENV VIRTUAL_ENV=/opt/venv | |
RUN python3 -m virtualenv --python=/usr/bin/python3 $VIRTUAL_ENV | |
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | |
# Install dependencies: | |
COPY requirements.txt . |
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 python:3.7.3-stretch | |
COPY app /app | |
RUN pip install pip==19.0.3 | |
RUN pip install poetry==1.0.0a2 | |
RUN source $HOME/.poetry/env | |
RUN poetry install | |
RUN useradd --create-home appuser |
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
""" | |
Module for managing nested dictionary collections. | |
""" | |
# nestdict.py by Adam Szieberth (2013) | |
# Python 3.3+ | |
class NestedDict(dict): | |
""" | |
Class for managing nested dictionary structures. Normally, it works |
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
Find the number of times f() is called as a function of the input size n. | |
a. for (i = n; i > 1; i /= 2) | |
f() | |
a. O(log n) | |
b. for (i = 0; i * i < n; i++) | |
f() | |
b. O(sqrt n) |
OlderNewer