- The History server just needs the job-archive (GCS Bucket) location to start.
flowchart TD
subgraph HistoryServer| # time python 21.py | |
| # python 21.py 0.48s user 0.12s system 79% cpu 0.748 total | |
| # | |
| # | |
| import re | |
| from collections import defaultdict | |
| from sympy import solve | |
| INPUT = '21.input' | |
| memonkey = 'humn' |
| class Node: | |
| def __init__(self, value): | |
| self.value = value | |
| self.next = None | |
| self.prev = None | |
| def __str__(self): | |
| return f'[{str(self.value)}]' | |
| def __repr__(self): |
showmount -e <ip-address-of-nfs-server> will show the shared <mount-path>sudo mkdir -p /private/nfs| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: ephemeral-test-deployment | |
| namespace: test-namespace | |
| spec: | |
| replicas: 600 | |
| selector: | |
| matchLabels: | |
| app: ephemeral-test-deployment |
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| name: ephemeral-test-statefulset | |
| namespace: test-namespace | |
| spec: | |
| replicas: 600 | |
| serviceName: ephemeral-test-statefulset | |
| podManagementPolicy: Parallel | |
| selector: |
| # Suppose you have a black image with white spots | |
| # This script will give you box coordinates of those spots | |
| # | |
| # | |
| # live-wire.github.io | |
| # | |
| # We will look at the image from the bottom-left and spread outwards | |
| # If a 1 is encountered, the algorithm will try to spread in all directions from that cell. | |
| # See functions possible_moves, possible_moves_exhaustive |
| # Expects jp2 files in folder jp2-files/ | |
| # jpeg files are generated in folder jpeg-files/ | |
| import os | |
| from PIL import Image, ImageFile | |
| ImageFile.LOAD_TRUNCATED_IMAGES = True | |
| input_folder = "jp2-files" | |
| output_folder = "jpeg-files" |
| # Video reverse | |
| import imageio | |
| import argparse | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument("--video", help="file path of video to be reversed") | |
| args = parser.parse_args() | |
| def main(): |