Skip to content

Instantly share code, notes, and snippets.

Avatar
🦄

Sia siakaramalegos

🦄
View GitHub Profile
@siakaramalegos
siakaramalegos / .bash_profile
Created Feb 4, 2015
Customized git bash profile
View .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 Aug 29, 2015
database.yml for split database types
View database.yml
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
test:
@siakaramalegos
siakaramalegos / home_splash_heroku_log
Created Mar 13, 2015
home_splash heroku push log
View home_splash_heroku_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 Mar 13, 2015
tts_resources heroku push log file for reference
View tts_resources_heroku_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
View activity_today.rb
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 Aug 2, 2015
Answers for the Ruby Review
View ruby_review.rb
# # 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 Sep 3, 2015
Practice JavaScript concepts
View practice.js
// 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
<!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 Oct 20, 2015
Imperial to metric ruby program
View imperial_to_metric.rb
# 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 Oct 20, 2015
Simple greeting app to show methods
View greeting.rb
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")