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
    
  
  
    
  | docker_x86_build: | |
| stage: build | |
| tags: | |
| - x86 | |
| - docker | |
| before_script: | |
| - apt-get update && apt-get upgrade -y | |
| - apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y | |
| script: | |
| - aarch64-linux-gnu-g++ hello_world.cpp -o HelloWorld | 
  
    
      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
    
  
  
    
  | x86_aarch64_build: | |
| stage: build | |
| tags: | |
| - x86-aarch64 | |
| script: | |
| - aarch64-linux-gnu-g++ hello_world.cpp -o HelloWorld | |
| artifacts: | |
| paths: | |
| - HelloWorld | 
  
    
      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
    
  
  
    
  | ssh_build_and_run: | |
| stage: build | |
| tags: | |
| - ssh | |
| script: | |
| - g++ hello_world.cpp -o HelloWorld | |
| - ./HelloWorld | |
| artifacts: | |
| paths: | |
| - build/HelloWorld | 
  
    
      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
    
  
  
    
  | cmake_minimum_required(VERSION 3.10.2) | |
| project("GitLab Runner Demo" | |
| DESCRIPTION "Demonstrate GitLab Runner" | |
| LANGUAGES CXX) | |
| add_executable(HelloWorld ${CMAKE_SOURCE_DIR}/hello_world.cpp) | 
  
    
      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
    
  
  
    
  | #include <iostream> | |
| int main() | |
| { | |
| std::cout << "Hello World" << std::endl; | |
| return 0; | |
| } | 
  
    
      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
    
  
  
    
  | # Setup volume claim | |
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: puzl-volume | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: | 
  
    
      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 delete(point, node, sDim, tDims): | |
| """Deletes the given point from the tree | |
| Args: | |
| point (tuple) : Coordinates to delete | |
| node (Node) : Entry node to start the search for the coordinates | |
| sDim (Integer) : Splitting / cutting dimension of the input node | |
| tDims (Integer) : Total number of imensions | |
| Returns: | |
| Input node after deletion | 
  
    
      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 find_min(node, dim, sDim, tDims): | |
| """Finds the node with minimum value in the given dimension | |
| Args: | |
| node (Node) : Entry node to begin search for the min node | |
| dim (Integer) : Dimension to search for the minimum | |
| sDim (Integer) : Splitting / cutting dimension of the input node | |
| tDims (Integer) : Total number of dimensions | |
| Returns: | |
| Point (tuple) with minimum value in the given dimension | |
| """ | 
  
    
      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
    
  
  
    
  | class Node: | |
| """ A binary-tree node class to store 2d-points""" | |
| def __init__(self, point, left_node, right_node): | |
| """Class initializations | |
| Args: | |
| point (tuple) : Integer tuple with coordinates | |
| left_node (Node, optional) : Node to attach as the left child | |
| right_node (Node, optional) : Node to attach as the right child | |
| """ | 
  
    
      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 insert(point, node, sDim, tDims): | |
| """Inserts the point to the given tree | |
| Args: | |
| point (tuple) : Coordinates to insert to the tree | |
| node (Node) : Parent node of the tree to compare | |
| sDim (Integer) : Splitting / cutting dimension of the input node | |
| tDims (Integer) : Total number of dimensions | |
| Returns: | |
| Node after insertion |