cato-hga / assignments Goto Github PK
View Code? Open in Web Editor NEWThis is a list of the assignments I completed at The Iron Yard (Rails Engineering).
This is a list of the assignments I completed at The Iron Yard (Rails Engineering).
This is assignment 21 and is due on Feb 05, 2015.
name
that takes the name and sets the first name and last name instance variables. This is so the first name and last name attributes are set by passing in one name.age
to calculate and return the user's age.calculateAge
. This should contain the functionality you previously had in the age
method. The public age
method should now call this new private calculateAge
method.This is assignment 26 and is due on Feb 11, 2015.
This is assignment 33 and is due on Feb 18, 2015.
This is assignment 20 and is due on Feb 04, 2015.
This is assignment 46 and is due on Mar 09, 2015.
We are half way through as of tomorrow. This is why I wanted to review all we've been doing. Additionally, I want to give you opportunity this weekend to get caught up before we begin the 2nd half.
Therefore this weekend's homework will not be any coding. Instead I want you to answer some questions in written format, to help get things clearer in your head. Beyond that, please use the time wisely. You do not want to remain behind on homework any longer. It will be too difficult for you to catch up and then focus on your demos, which are critical in summarizing all you've learned and launching yourself into your new career.
This is assignment 13 and is due on Feb 02, 2015.
This is assignment 49 and is due on Mar 11, 2015.
This is assignment 37 and is due on Feb 25, 2015.
heroku config
so you aren't storing your S3 private access keys in GitHubThis is assignment 48 and is due on Mar 11, 2015.
.inspect
method to the log. Paste the section of your log file in a comment in this issue. In an issue comment direct me to where you have added the logger statements. (Yes, in this case you can check logger statements in).This is assignment 24 and is due on Feb 09, 2015.
This assignment is due on Jan 28, 2015.
This is assignment 36 and is due on Feb 24, 2015.
This is assignment 15 and is due on Feb 02, 2015.
This is assignment 42 and is due on Mar 02, 2015.
This assignment is due on Jan 29, 2015.
Take the string "Hello World" and split it on whitespace. Show two ways to do this.
Use the Peter Piper tongue twister and split it on 'pick'
Use gsub only to change the first passage to the second in the fewest amount of commands:
Original: "You have brains in your head. You have feet in your shoes. You can steer yourself any direction you choose. You're on your own. And you know what you know. And YOU are the one who'll decide where to go..."
Result: "I have brains in my head. I have feet in my shoes. I can steer myself any direction I choose. I'm on my own. And I know what I know. And I'M the one who'll decide where to go..."
Write code to determine how many times 'sh' occurs in the following phrase:
There once was a man who had a sister, his name was Mr. Fister. Mr. Fister's sister sold sea shells by the sea shore. Mr. Fister didn't sell sea shells, he sold silk sheets. Mr. Fister told his sister that he sold six silk sheets to six shieks. The sister of Mr. Fister said I sold six shells to six shieks too!
In the same phrase above, how many times does 'sh' occur when followed by an 'o'? Show the code.
Match the word foot
but not football
in this phrase: "He played football despite having an artificial foot.""
Match the last sits
in a phrase using this phrase: "I saw Susie sitting in a shoe shine shop. Where she sits she shines, and where she shines she sits."
This is assignment 40 and is due on Feb 26, 2015.
This assignment is due on Jan 28, 2015.
This is assignment 47 and is due on Mar 10, 2015.
This assignment is due on Jan 29, 2015.
This is assignment 38 and is due on Feb 25, 2015.
This is assignment 43 and is due on Mar 03, 2015.
admin
attribute to your user model. Restrict any admin only actions from your views.This is assignment 11 and is due on Feb 02, 2015.
This is assignment 35 and is due on Feb 23, 2015.
Create a new Rails app, in it's own folder (not within the previous Assignments folder)
This new Rails app should have three models. Two of them should have scaffolds. They should all have associations, so pick three models that are related in some way.
Ensure all associations can be set within your Rails app views (no longer just in the console)
On the index view of a parent model, show the count of children it has (the has_many relationship). Example: how many books does that library have?
Add a Procfile to your app with this line: web: bundle exec thin start -p $PORT
(note: this is to get it working on Heroku)
Add the following to your Gemfile (please read the comments to remind yourself why each Gem is necessary):
# User the 'thin' server instead of the default webrick
gem 'thin'
# Use postgres and the Heroku rails gem for Heroku
group :production do
gem 'rails_12factor'
end
Deploy to Heroku
When you submit the assignment, paste the URL to your Heroku app in a comment within this issue.
This is assignment 27 and is due on Feb 11, 2015.
This is assignment 31 and is due on Feb 16, 2015.
This assignment is due on Jan 26, 2015.
This is assignment 30 and is due on Feb 16, 2015.
This is assignment 17 and is due on Feb 03, 2015.
This is assignment 44 and is due on Mar 05, 2015.
git rm filename
to remove the second file (where filename is whatever you named it. Then commit the deletion and push to the repo (removing the file from GitHub too).This is assignment 25b and is due on Feb 10, 2015.
This is assignment 16 and is due on Feb 02, 2015.
This is assignment 39 and is due on Feb 26, 2015.
This is assignment 19 and is due on Feb 04, 2015.
Extend Ruby's String class to have a "pigatize" method that will turn any string into pig latin.
Should use the same code you wrote before, but now you are extending the String class and putting the functionality in there.
This is assignment 12 and is due on Feb 02, 2015.
This is assignment 22 and is due on Feb 05, 2015.
This is assignment 28 and is due on Feb 11, 2015.
This is assignment 25a and is due on Feb 10, 2015.
This is assignment 41 and is due on Mar 02, 2015.
This assignment is due on Jan 29, 2015.
This is assignment 45 and is due on Mar 05, 2015.
Read about Rake tasks in Rails
Create a custom rake task for your Pinterest app that will output the current count of all your models. Example:
Teams: 4
Users: 10
Books: 15
Authors: 2
Movies: 1
This assignment is due on Jan 26, 2015.
The following resources will help you better understand your current mindset and how the learning process works. I firmly believe, "Failure is not the opposite of success, it's part of success."
Do this no matter what your experience level. It's fun. I did it with my kids last year. They loved it and I actually enjoyed it myself. It's only an hour. Watch the videos as well. They really did a great job of explaining programming paradigms.
As you know, we use Macs for all development. I would guess that about 99% of all Rails developers use Macs. It's a much easier platform for this type of development. If you aren't familiar with using a Mac, please go through the tutorials below.
The console is where you will do much of your work. It's crucial to understand it and become comfortable in it. If you haven't used it before, this will definitely be a learning curve. Reading and working through the resources below will help you to be better prepared for day one.
We will be using Git for all source control. This tutorial will help you understand how Git works. We will cover Git and GitHub from the very first day in class.
HTML and CSS are fundamental technologies necessary for all web developers. The tutorial below will give you an introduction to these technologies.
Of course, typing is a huge part of being a web developer, because it's how you communicate with the computer. If you are not a proficient touch typists please do the first tutorial below. The second tutorial is a good one for practicing typing some of the commands and more unusual characters used in development.
*Note: Treehouse requires a monthly subscription of $25/mo but there is a 14 day free trial you can use for the prep work.
**Note: Be sure, if you are reading this via an email notification, that you click through to visit this issue on the site. You can check the checkboxes right on GitHub.com to show your progress, or leave questions in the comments
This is assignment 14 and is due on Feb 02, 2015.
This is assignment 29 and is due on Feb 12, 2015.
This assignment is due on Jan 28, 2015.
This is assignment 23 and is due on Feb 09, 2015.
This is assignment 34 and is due on Feb 19, 2015.
This is assignment 18 and is due on Feb 04, 2015.
This assignment is due on Jan 28, 2015.
Use the following code to create a Ruby file and run it. The file can be run either by ruby filename
or, if you choose, you can set the executable bit (chmod +x filename
) and add a shebang.
puts 3 > 4
puts (3 * 2) > 10
puts 2 == 3
puts (1 > 0) && (2 <= 1)
puts 2 != 2
puts (14 <= 10) || (2 >= 3)
puts 10 % 2 == 1
puts (10 ** 2) == 1000
puts 1000 / 300 > 4
Now change the code above so that when you run it, all the equations are true.
Please create a gist of the final code and paste the url of the gist in an issue comment.
This is assignment 32 and is due on Feb 17, 2015.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.