I hereby claim:
- I am tuckcodes on github.
- I am tuckcodes (https://keybase.io/tuckcodes) on keybase.
- I have a public key ASBkr47X56OI9DmqWoSQhzQXr0iOLV02-hSxo66cyC-fago
To claim this, I am signing this object:
| // Chess Board | |
| // Create a chess board with a congigurable row amount parameter | |
| let size = prompt(Number("How many rows?")), board = "# # # #"; | |
| for (let count = 0; count < size; count++) { | |
| if (count%2==0) { | |
| console.log(" " + board) | |
| } else { | |
| console.log(board); | |
| } | |
| } |
| // FizzBuzz | |
| // Good ol'fashioned fizz buzz | |
| // Decided to use a switch statement to mix it up a little | |
| for (let numStart = 0; numStart<100; numStart++) { | |
| switch (true) { | |
| case ((numStart>0) && (numStart%3 == 0)): | |
| console.log("Fizz"); | |
| break; | |
| case ((numStart>0) && (numStart%5 == 0)): |
| // Bean Counter | |
| // Determine how many matching letters there are in an input string from an input character | |
| function countChar(stringInput, charSelect) { | |
| stringInput = String(stringInput); | |
| let letterArray = Array.from(stringInput), count = 0; | |
| letterArray.forEach(letter => { | |
| if (letter == charSelect) { | |
| count++; |
| // Min rebuild | |
| // Rebuild the min function | |
| function smallestNum(...numbersArray) { | |
| lowestNumber = true; | |
| numbersArray.forEach(number => { | |
| if (lowestNumber == true) { | |
| lowestNumber = number; | |
| } | |
| if (lowestNumber > number) { | |
| lowestNumber = number |
| // Triangle Loop | |
| // Just making a triangle kinda thing in the console | |
| let charPound = "#"; | |
| for (let index = 0; index < 8; index++) { | |
| console.log(charPound.repeat(index)); | |
| } |
| // Even or Odd | |
| // Determine even or odd WITHOUT the modulo operator | |
| // My aim is to add or subtract two from the input until I reach 0 or 1 | |
| // If it concludes on 0 it is even, and if on 1 it is odd | |
| function determineIfEven(num1) { | |
| switch (!isNaN(num1)) { | |
| case (num1 == 0): // If the input is 0 then even | |
| console.log(true); // Output boolean true | |
| break; | |
| case (num1 == 1): // If the input is 1 then not even |
| pragma solidity 0.5.1; | |
| contract DogContract { | |
| struct Dog { | |
| string name; | |
| uint age; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| version: '3.8' | |
| services: | |
| # The central Vault server for the demo | |
| vault-server: | |
| image: vault:latest | |
| ports: | |
| - "8200:8200" | |
| environment: | |
| - VAULT_ADDR=http://0.0.0.0:8200 |
Project Scaffolding Instructions for Firebase Studio
Objective: Scaffold a complete, self-contained project for the "Vault Tactical Edge Demo." The project will use Docker Compose to run a local environment consisting of a HashiCorp Vault server, several Vault Agent containers (simulating Stryker vehicles), and a Node.js Express server that provides a control API and serves a static web GUI.
Order of Operations:
Create the complete directory and file structure as specified below.
Populate each file with the provided source code.