Dustin Davis

Firefighter and Web Designer


Dustin Davis is a Firefighter with the Oak Hill Fire Department located in Southwest Travis County. He is currently working towards being a Web Designer.

Code Snippets


Temperature Conversion

This Ruby program will prompt the user for a temperature in degrees Celsius and let the user know what the corresponding temperature is in Fahrenheit.

n = 0
puts "what is the temperature in celcius?"
celc = gets.chomp
celc1 = celc.to_f
def fahr(celc1)
    answer = celc1 * 1.8 + 32
return answer
end

puts "The temperature in Fahrenheit is, #{fahr(celc1)}"

n = 0
puts "enter a number"
number = gets.chomp.to_i

lopped = number % 10



case lopped

when 1
    
    suffix = "st"
when 2
   
    suffix = "nd"
when 3
    
    suffix ="rd"
else 
   
    suffix = "th"
end

ordinal = number.to_s + suffix

if number == 11 || number == 12 || number == 13
    puts "that is the #{number}th item"    
else 
  puts "that is the " + ordinal +" item"  
end

Ordinal Challenge

This Ruby program will convert a plain number to the ordinal of the number. So for example, if the user enters 2, it will display 2nd, if the user enters 3, it will display 3rd, etc.


Foobar

This Ruby program is an adaptation of a classic technical interview problem which displays sequences of the Foobar pattern.

n = 0
puts "How many digits would you like to see?"
digits = gets.chomp.to_i

def foo_3(num)
    num % 3
end

def foo_5(num)
    num % 5
end

def foo_3_5(num)
    num % 15
end

count = 1

while count <= digits
    if foo_3_5(count) == 0
        puts "foobar"
    elsif foo_5(count) == 0
        puts "bar"
    elsif foo_3(count) == 0
        puts "foo"
    else
        puts count
    end
    count = count + 1
end

Web Apps


Quote Generator

A database-powered quote generator with a mobile-first design, using the Ruby on Rails framework, HTML, and CSS. Uses Git and GitHub for version control, and launched on Heroku.

Yelp Clone

A Yelp clone that integrates with the Google Maps API and includes features like user comments, star ratings, image uploading, and user authentication.


Two-Sided Market Place

A two-sided, video-streaming marketplace platform that features credit card payment capabilities, user role management, complex user interfaces, and advanced database relationships.

Test Driven Development

An Instagram clone that was built using industry-standard, test-driven development following numerous red/green/refactor cycles.


Single Page Todo Application

This single-page to-do application features a fluid user interface that– by using JavaScript– allows users to rapidly add dynamic content.

Agile Team Project

Worked on an Agile software development team building a chess application. Under the guidance of a senior software engineer, we had weekly Agile team meetings for code reviews, sprint planning, and feature assignments.


Skills & Tools


Dustin has developed proficiency and expertise in the following programming languages and comfort with the following tools.


Contact


Currently entertaining new opportunities. Please get in touch via email:

dustindavis1@gmail.com