Skip to content

Instantly share code, notes, and snippets.

// Initializing Variables
var userChoice = prompt("Do you choose rock, paper or scissors?");
var computerChoice = Math.random();
// Validation for user input
//if ( userChoice != "rock" || "paper" || "scissors" ) {
// userChoice = prompt("You did not select rock, paper, or scissors. Please try again.");
//}
// Randomly selecting correct value for computerChoice
@joehinkle
joehinkle / Vagrantfile
Created November 4, 2014 16:29
Vagrant Box for PHP5 usage
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "hashicorp/precise32"
config.vm.provision :shell, path: "bootstrap.sh"
config.vm.network "forwarded_port", guest: 80, host: 8080