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
//cash-register | |
//https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects/cash-register/ | |
function checkCashRegister(price, cash, cid) { | |
//reference for currency values | |
const currency = { | |
'ONE HUNDRED': 100.00, | |
'TWENTY': 20.00, | |
'TEN': 10.00, | |
'FIVE': 5.00, |
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
function Install-Tomcat { | |
[CmdletBinding()] | |
param( | |
# Path to the Tomcat installer exe | |
[Parameter(Mandatory=$true)] | |
[string] | |
$Path, | |
# Install Destination | |
[Parameter(Mandatory=$true)] |
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 csv | |
$csv = Import-CSV -Name c:\myfile.csv | |
#define empty array | |
$arr = @() | |
foreach($row in $csv) { | |
#create an object to store the data for the specific vm you are targeting | |
$obj = New-Object -TypeName PSObject | |