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
    
  
  
    
  | var userChoice = prompt("Do you choose rock, paper or scissors?"); | |
| var computerChoice = Math.random(); | |
| if (computerChoice < 0.34) { | |
| computerChoice = "rock"; | |
| } else if(computerChoice <= 0.67) { | |
| computerChoice = "paper"; | |
| } else { | |
| computerChoice = "scissors"; | |
| } | 
  
    
      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
    
  
  
    
  | $LOAD_PATH.unshift(File.expand_path('.')) | |
| require 'sinatra' | |
| require 'sinatra/activerecord' | |
| require_relative './models/user' | |
| require_relative './models/post' | |
| begin | |
| # This loads environment variables from the .env file | |
| require 'dotenv' | 
  
    
      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
    
  
  
    
  | $('.users .user:nth-child(3)').hover( function(){$(this).fadeOut(100);$(this).fadeIn(500)}); | 
  
    
      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
    
  
  
    
  | element.style { | |
| background-color: red; | |
| } | |
| coachesmedia="screen" | |
| .container { | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| coachesmedia="screen" | |
| .container, .navbar-fixed-top .container, .navbar-fixed-bottom .container { | 
  
    
      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
    
  
  
    
  | user = User.find_by_username(params[:username]) | |
| User.find_by(username: params[:username]) | 
  
    
      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
    
  
  
    
  | post '/signin' do | |
| user = User.where("username = ?", params[:username]) | |
| if user.password == params[:password] | |
| redirect "/user/#{user.id}" | |
| else | |
| redirect '/' | |
| end | |
| end | |
| post '/signup' do | 
  
    
      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
    
  
  
    
  | require 'sinatra' | |
| require 'erb' | |
| require_relative 'models/coach' | |
| enable :sessions | |
| get '/' do | |
| p session | |
| @current_user = session[:user] | |
| @fname = @current_user[:fname] | 
  
    
      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
    
  
  
    
  | class Vehical | |
| attr_accessor :drive, :brake | |
| def initialize(args) | |
| @color = args[:color] | |
| @wheels = args[:wheels] | |
| @status = :stopped | |
| # @driving = false | |
| end | |
| def drive | 
  
    
      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
    
  
  
    
  | https://www.dropbox.com/s/oz32yo4yl8lewvo/Screen%20Shot%202013-08-17%20at%202.57.15%20PM.png | |
| <?xml version="1.0" encoding="utf-8" ?> | |
| <!-- SQL XML created by WWW SQL Designer, http://code.google.com/p/wwwsqldesigner/ --> | |
| <!-- Active URL: http://socrates.devbootcamp.com/sql.html --> | |
| <sql> | |
| <datatypes db="mysql"> | |
| <group label="Numeric" color="rgb(238,238,170)"> | |
| <type label="Integer" length="0" sql="INTEGER" re="INT" quote=""/> | |
| <type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/> |