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
% Autor: Professor José Nuno Oliveira | |
\documentclass{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage{tikz} | |
% Define Colors | |
\definecolor{eng}{cmyk}{0.14,0.71,1,0.03} | |
\definecolor{um}{cmyk}{0.25,1.00,1.00,0.22} |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "avl.h" | |
typedef struct treenode{ | |
BalanceFactor bf; | |
void* entry; | |
struct treenode *left; | |
struct treenode *right; |
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
typedef enum balancefactor { LH , EH , RH } BalanceFactor; | |
typedef struct treenode *Tree; | |
Tree createTree(void); | |
void emptyTree(Tree t); | |
int treeHeight(Tree t); | |
int treeSize(Tree t); | |
int isEmpty(Tree t); |
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 typer | |
import json | |
import subprocess | |
IMAGE_INDEX_IMAGE_MANIFEST_MEDIA_TYPE="application/vnd.docker.distribution.manifest.list.v2+json" | |
DEFAULT_NEW_TAG_TEMPLATE="{image_index_tag}-{platform_os}-{platform_arch}" | |
GET_MANIFEST_COMMAND_TEMPLATE="MANIFEST=$(aws ecr batch-get-image --repository-name {repo_name} --image-ids imageDigest='{digest}' --output json | jq --raw-output --join-output '.images[0].imageManifest')" | |
PUT_IMAGE_COMMAND_TEMPLATE='aws ecr put-image --repository-name {repo_name} --image-tag {tag} --image-manifest \"$MANIFEST\"' | |
def get_tag_from_image(image): |