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
    
  
  
    
  | asdfsadfasdfsadfasdfsdfasd | 
  
    
      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
    
  
  
    
  | def make_address(street, city, state, zip) | |
| return "You live at #{street} in the beautiful city of #{city}, #{state}. Your zip is #{zip}." | |
| end | 
  
    
      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
    
  
  
    
  | def get_grade(average) | |
| case average | |
| when 90..100 | |
| return 'A' | |
| when 80..90 | |
| return 'B' | |
| when 70..80 | |
| return 'C' | |
| when 60..70 | |
| return 'D' | 
  
    
      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
    
  
  
    
  | def good_guess?(int) | |
| case int | |
| when int == 42 | |
| return "true" | |
| else | |
| return "false" | |
| end | |
| end | 
  
    
      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
    
  
  
    
  | def ask(question) | |
| while true | |
| puts question | |
| reply = gets.chomp.downcase | |
| if (reply == 'yes' || reply == 'no') | |
| if reply == 'yes' | |
| answer = true | |
| else | 
  
    
      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
    
  
  
    
  | def reverse_words(str) | |
| array = [ ] | |
| array = str.split.each do |x| | |
| end | |
| str.reverse | |
| end | 
  
    
      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=""/> | 
  
    
      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
    
  
  
    
  | require 'sinatra' | |
| require 'erb' | |
| require_relative 'models/coach' | |
| enable :sessions | |
| get '/' do | |
| p session | |
| @current_user = session[:user] | |
| @fname = @current_user[:fname] | 
OlderNewer