Skip to content

Instantly share code, notes, and snippets.

View rogfut's full-sized avatar
📚
always learning

Roger Futrell rogfut

📚
always learning
  • Greater Seattle Area
View GitHub Profile
//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,
function Install-Tomcat {
[CmdletBinding()]
param(
# Path to the Tomcat installer exe
[Parameter(Mandatory=$true)]
[string]
$Path,
# Install Destination
[Parameter(Mandatory=$true)]
@rogfut
rogfut / stomplee.ps1
Created August 11, 2016 21:15
stomplee
#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