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 python | |
WORKDIR /app | |
RUN apt update -y | |
RUN pip install --upgrade pip | |
COPY ./requirements-dev.txt /app/requirements-dev.txt | |
# COPY ./requirements.txt /app/requirements.txt |
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
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.List; | |
import java.util.ArrayList; | |
public class HelloWorld{ | |
public static void main(String []args){ | |
System.out.println("Hello World"); | |
Map vehicles = new HashMap(); |
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
""" | |
TODO: Example: | |
I have 5 instances but 12 partitions | |
I want all instances to consume so one instance must consume on an odd number | |
""" | |
import math | |
def get_chunks(iterable, parts): | |
"""Yield successive chunks from ``len(iterable) / parts``. |