Taking my own advice

Plugging away!

Plugging away!

Have you been wondering where in the world I went? Sometimes you just have to experience life while it is happening. That is exactly what I have been up to:)

I learned a lot of Ruby in a short amount of time and really needed to digest before blogging about it.

What I like the most about Ruby is that it is an Object Oriented Programming language (OOPL).

Here are a few small projects that I worked. Each project was scripted with Ruby and then ran using the terminal.

  • Always_three
  1. puts“Give me a number.”
  2. first_number=gets.to_i
  3.  
  4. def my_always_three_method(num1)
  5. (((num1+5)*2-4)/2-num1)
  6. end
  7. puts“Always” + my_always_three_method(first_number).to_
  • Numerology app
  1. puts ‘What is your birthdate? Please enter month, day, and year.’
  2. birthdate = gets
  3. def get_birth_path(birthdate)
  4. number = birthdate[0].to_i + birthdate[1].to_i +
  5. birthdate[2].to_i + birthdate[3].to_i +
  6. birthdate[4].to_i + birthdate[5].to_i +
  7. birthdate[6].to_i + birthdate[7].to_i +
  8. birthdate[8].to_i + birthdate[9].to_i
  9. number = number.to_s
  10. number = number[0].to_i + number[1].to_i
  11. if number > 9
  12. number = number[0].to_i + number[1].to_i
  13. end
  14. return number
  15. end
  16. def get_user_birth_message(path_number)
  17. case path_number
  18. when 1
  19. number_message = “Your numberology number is #{path_number}. \n One is
  20. the leader. The number one indicicates the ability to
  21. stand alone, and is a strong vibration. Ruled by the
  22. Sun.
  23. when 2
  24. number_message = “Your numberology number is #{path_number}. \n This is
  25. the meditor and peace-lover. The number Two indicates the
  26. desire for harmony. It is a gentle, considerate, and sensitive
  27. vibration. Ruled by the Moon.
  28. when 3
  29. number_message = “Your numberology number is #{path_number}. Number Three is a sociable, friendly, and outgoing vibration.
  30. Kind, positive, and optimistic, Three‘s enjoy life and have a good
  31. sense of humor. Ruled by Jupiter.
  32.    when 4
  33.    number_message = “Your numberology number is #{path_number}.This is the worker. Practical, with love of detail, Fours are
  34.    trustworthy, hard-working, and helpful. Ruled by Uranus.
  35.    when 5
  36.    number_message = “Your numberology number is #{path_number}.This is the freedom lover. The number Five is an intellectual
  37.    vibration. These are ‘idea’ people with a love of variety and the
  38.    ability to adapt to most situations. Ruled by Mercury.
  39.    when 6
  40.    number_message = “Your numberology number is #{path_number}.This is the peace lover. The number Six is a loving,
  41.    stable, and harmonious vibration. Ruled by Venus.
  42. when 7
  43. number_message = “Your numberology number is #{path_number}.This is a deep thinker. The number Seven is a spiritual
  44. vibration. These people are not very attached to material things,
  45. are introspective, and generally quiet. Ruled by Neptune.
  46. when 8
  47. number_message = “Your numberology number is #{path_number}.This is the manager. Number Eight is a strong, successful, and
  48. material vibration. Ruled by Saturn.
  49. when 9
  50. number_message = “Your numberology number is #{path_number}.This is the teacher. Number Nine is a tolerant, somewhat impractical,
  51. and sympathetic vibration. Ruled by Mars.
  52. else
  53. number_message = “I’v got nothing for you. You must be an alien!”
  54. end
  55. end
  56. path_number = get_birth_path (birthdate)
  57. number_message = get_user_birth_message(path_number)
  58. puts number_message
  • Fizzbuzz
  1. i=0
  2. for i in (1..100).each do
  3. if  i % 15 == 0
  4. print “FizzBuzz”
  5. elsif i % 3 == 0
  6. print “fizz”
  7. elsif i % 5 == 0
  8. print “Buzz”
  9. else
  10. puts i
  11. end
  12. i=1
  13. end


One of my last assignments for the Web-development course was to create an ‘advice web page’ with HTML and CSS for people who are learning to code.  Here is my advice for all the code newbies out there!

Erin's Advice

Erin’s Advice

After struggling to get this baby pushed to GitHub, I decided that the next step for me was to take a class on GitHub itself.

I understand the purpose of Git and GitHub,  but haven’t mastered using the platform. I am now signed up for this free course by Udacity.

Although the Web-Developer course through Skillcrush officially ended on February 6th. I have access to all the material forever! Just another reason I highly recommend using Skillcrush.

A very special Thank YOU for all the Skillcrush instructors and classmates!

Enjoying my Life!

Enjoying my Life!

Advertisements

Working on JS or is it working me?

First off I want to announce that I am currently one day behind in my Skillcrush course. BOO!

This is how it goes when you have sickness running rampid in house full of kids. (NOT FUN)

 

Creating a modal window with JavaScript was a bit challenging, though I am not the only one who feels this way. It was a challenge for most of my classmates as well. I did however figure out the modal on my own.  YAY me!

After creating my modal I moved on to working with the console.

Since I am programming from a Chromebook, I focused on working with the Chrome console.

I like that I am able to debug and makes changes using the console.

The Great Logo Hijack was an assignment that I really enjoyed.

I was able to go to the Google search page, find the Javascript and edit it from my console. Below is a screenshot of what I did.

I hijacked Google's logo!

I hijacked Google’s logo!

Do you see how it reads “The New York Times” and “search NY times”? That’s my hijack;)

Object, functions, variables, and properties of Javascript is what I am currently learning.

This is the most difficult part of programming that I have encountered.

I have worked through some of the problems with my classmates on Mightybell. I really do have a great group of skillcrushers to lean on.

I honestly don’t think that I will be comfortable using JavaScript by the end of next week. For now, am I working on JS or is it working on me? That is the question.

On a happy note I am ten days into a Yoga challenge and finding it to center me in the middle of this struggle.

Me trying to stay calm..#justbepresent Yogo challenge.

Me trying to stay calm..#justbepresent Yogo challenge.