diff --git a/IT/Hashicorp Nomad.md b/IT/Hashicorp Nomad.md index 701fe05..465b3b1 100644 --- a/IT/Hashicorp Nomad.md +++ b/IT/Hashicorp Nomad.md @@ -25,6 +25,11 @@ Running a task is generally done by: 1. *Define a job specification for your task(s):* it'll contain info like where the workload artifact is located, ports used by the service, the number of instances desired, and more. 2. *Deploying the job*: The jobspec is submitted to Nomad and it schedules an allocation for the job on one or more clients. 3. Updating and redploying the job. + +# Deployment +## Installing the CLI +https://developer.hashicorp.com/nomad/tutorials/get-started/gs-install#install-the-nomad-cli + # Resources - https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview - https://developer.hashicorp.com/nomad/docs/drivers \ No newline at end of file diff --git a/education/software development/ECE1400/C.md b/education/software development/ECE1400/C.md index fde8ce7..13b5156 100644 --- a/education/software development/ECE1400/C.md +++ b/education/software development/ECE1400/C.md @@ -38,6 +38,16 @@ In C, a `char` denotes a single byte of arbitrary encoding. ## Variables A variable must be declared before it is assigned. +## Arrays +### Finding the size of an array +```c +int arr[10]; +// The size of an array can be found by +// determining the number of bytes allocated total and dividing that by the size of each element in the array. +int arr_size = sizeof(arr) / sizeof(arr[0]); + +``` + # Formatting specifiers # Standard library