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
version: '2.2' | |
services: | |
es01: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3 | |
container_name: es01 | |
environment: | |
- node.name=es01 | |
- cluster.name=es-docker-cluster | |
- cluster.initial_master_nodes=es01 | |
- bootstrap.memory_lock=true |
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
static_resources: | |
clusters: | |
- name: local_admin_cluster | |
connect_timeout: 30s | |
type: STATIC | |
lb_policy: ROUND_ROBIN | |
hosts: [{ socket_address: { address: 0.0.0.0, port_value: 5000 }}] | |
listeners: | |
- name: local_admin_listener |
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
admin: | |
access_log_path: /var/log/envoy/envoy_admin_access.log | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 5000 } |
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
Run 1: | |
Parameters of: p1 b10 t5 c75 m200 s3090 | |
Target density:18 | |
Found density of 19 in block: 0, 0 | |
_>>___VV>> | |
V>_VV>>V_> | |
>>V>V_>_V> | |
V_>_>_>V>V | |
>VV>>_V__> |
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
void printList(Food * theList) // maybe something is weird here? Idk, mostly for | |
{ | |
struct Food * curPos; | |
char * tempStr; | |
if (isEmpty(theList) == true) | |
printf("Error: there is no record to print.\n"); | |
curPos = theList; | |
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
int parent = floor(position/2); | |
if(position != 0) { | |
/* less than 1, swap required */ | |
if( (*queue)->compare( (*queue)->items[parent]->value, (*queue)->items[position]->value ) > 0 ) { | |
swap(queue, parent, position); | |
upHeap(queue, parent); | |
} | |
} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <time.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
int GetUserAnswer(int *userAnswer); |