Skip to content

Instantly share code, notes, and snippets.

View siakaramalegos's full-sized avatar
🦄

Sia siakaramalegos

🦄
View GitHub Profile
@siakaramalegos
siakaramalegos / .bash_profile
Created February 4, 2015 21:20
Customized git bash profile
# 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
@siakaramalegos
siakaramalegos / database.yml
Last active August 29, 2015 14:16
database.yml for split database types
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
test:
@siakaramalegos
siakaramalegos / home_splash_heroku_log
Created March 13, 2015 01:19
home_splash heroku push log
-----> 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
@siakaramalegos
siakaramalegos / tts_resources_heroku_log
Created March 13, 2015 01:21
tts_resources heroku push log file for reference
-----> 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
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
@siakaramalegos
siakaramalegos / ruby_review.rb
Created August 2, 2015 20:41
Answers for the Ruby Review
# # 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."
@siakaramalegos
siakaramalegos / practice.js
Created September 3, 2015 12:52
Practice JavaScript concepts
// var message = "hello world";
// console.log(message);
// var x = "hey";
// var y = 10;
// console.log(x);
// console.log(y);
// console.log(x + y);
@siakaramalegos
siakaramalegos / practice_js.html
Created September 3, 2015 13:49
Practicing JQuery
<!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>
@siakaramalegos
siakaramalegos / imperial_to_metric.rb
Created October 20, 2015 15:38
Imperial to metric ruby program
# 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
@siakaramalegos
siakaramalegos / greeting.rb
Created October 20, 2015 15:53
Simple greeting app to show methods
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")