View .bash_profile
This file contains 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
# Enable tab completion | |
source ~/git-completion.bash | |
# colors! | |
Bgreen="\e[1;32m" | |
Bcyan="\e[1;36m" | |
Bpurple="\e[1;35m" | |
reset="\[\033[0m\]" | |
# Change command prompt |
View database.yml
This file contains 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
default: &default | |
adapter: sqlite3 | |
pool: 5 | |
timeout: 5000 | |
development: | |
<<: *default | |
database: db/development.sqlite3 | |
test: |
View home_splash_heroku_log
This file contains 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
-----> Ruby app detected | |
-----> Compiling Ruby/Rails | |
-----> Using Ruby version: ruby-2.0.0 | |
###### WARNING: | |
Removing `Gemfile.lock` because it was generated on Windows. | |
Bundler will do a full resolve so native gems are handled properly. | |
This may result in unexpected gem versions being used in your app. | |
In rare occasions Bundler may not be able to resolve your dependencies at all. | |
https://devcenter.heroku.com/articles/bundler-windows-gemfile |
View tts_resources_heroku_log
This file contains 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
-----> Ruby app detected | |
-----> Compiling Ruby/Rails | |
-----> Using Ruby version: ruby-2.0.0 | |
###### WARNING: | |
Removing `Gemfile.lock` because it was generated on Windows. | |
Bundler will do a full resolve so native gems are handled properly. | |
This may result in unexpected gem versions being used in your app. | |
In rare occasions Bundler may not be able to resolve your dependencies at all. | |
https://devcenter.heroku.com/articles/bundler-windows-gemfile |
View activity_today.rb
This file contains 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 activity | |
puts "What's the temperature today?" | |
temperature = gets.chomp.to_i | |
# if temperature > 105 || temperature < 0 | |
# puts "That's not a valid temperature for New Orleans." | |
# activity | |
# elsif temperature > 80 | |
# puts "It's #{temperature} degrees. Let's go swimming!" | |
# elsif temperature > 50 |
View ruby_review.rb
This file contains 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
# # Question 1: Write a program that takes user input for their name and passes | |
# # it to a method as an argument and then displays it into the following | |
# # concatenated string: | |
# # "Hello (name). Nice to meet you." | |
# puts "What is your name?" | |
# user_name = gets.chomp | |
# def greeting name | |
# puts "Hello #{name}. Nice to meet you." |
View practice.js
This file contains 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 message = "hello world"; | |
// console.log(message); | |
// var x = "hey"; | |
// var y = 10; | |
// console.log(x); | |
// console.log(y); | |
// console.log(x + y); |
View practice_js.html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<style type="text/css"> | |
.special { | |
color: pink; | |
} | |
</style> |
View imperial_to_metric.rb
This file contains 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
# Imperial to Metric conversion program | |
puts "*************************************************" | |
puts "*** Welcome to My Fancy Conversion Program! ***" | |
puts "*************************************************\n\n" | |
puts "What's your name?" | |
user = gets.chomp | |
puts "\nWhat is your height in inches?" | |
user_height_inches = gets.chomp.to_i |
View greeting.rb
This file contains 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 greeting name="Sia" | |
puts "Hello #{name}" | |
end | |
def how_you_doing(name1, name2) | |
puts "Hi, I'm #{name1}. How YOU doin', #{name2}?" | |
end | |
greeting("Sia") | |
greeting("Lindsay") |
OlderNewer