Skip to content

Instantly share code, notes, and snippets.

@Leejojo
Leejojo / employee.rb
Created July 6, 2016 20:07
Stores & Employees (CR)
class Employee < ActiveRecord::Base
belongs_to :store
validates :first_name, presence: true
validates :last_name, presence: true
validates :hourly_rate, numericality: { greater_than: 40, less_than: 3000 }
validates :store_id, presence: true
end
@Leejojo
Leejojo / arrayOfLights
Created July 25, 2016 16:59
arrayOfLights
function arrayOfLight(x) {
for (var i = 0; i <= x; i++){
console.log(i)
}
}
@Leejojo
Leejojo / js-betting-game
Created July 25, 2016 22:17
js-betting-game
<!DOCTYPE html>
<html>
<head>
<script src="jquery-3.1.0.js"></script>
</head>
<body>
<h1>Place Your Bets!</h1>