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
// Include gulp (as installed locally and recorded in local package.json file) | |
var gulp = require('gulp'); | |
// Include plugins (ditto) | |
var compass = require('gulp-compass'), |
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
rails generate scaffold question title body:text |
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
*** LOCAL GEMS *** | |
bundler (1.1.4 ruby) | |
rake (0.9.2) | |
Rebecca-Appletons-MacBook-Air:rails_projects rebecca$ |
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
# Exercises - write two methods in the book class that make the failing tests pass | |
# Extra Credit - refactor the way page_count is handled so it is more DRY | |
# Extra Extra Credit - add a humanize method to the String class so you can take a string like this: | |
# 'page_count' and turn it into this 'page count' | |
# Be sure to add tests for your extra credit!! | |
class Book | |
attr_accessor :title, :author, :page_count, :pages | |
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
# Assignment: Fill in this Table class so the tests pass! | |
# Exercise Details: | |
#- Make a Table object class | |
#- Define at least 5 properties of a Table (legs, material, items_on_it, etc…) | |
#- Define an initialize method that sets one or more of the attributes when you call Table.new | |
#- Define a pretty_print method that prints out some useful information about your table | |
#- Email us a link to your code in a Gist | |
# Extra Credit: |
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
<nav id="access" role="navigation"> | |
<div class="container"> | |
<div class="content"> | |
<ul id="primary-menu" class="sf-menu sf-js-enabled sf-shadow"><li id="menu-item-117" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-117"><a title="Home" href="/"><img src="/wp-content/themes/swagger/assets/images/home-ffffff.png" style="width: border-size: 1px"></a></li> | |
<li id="menu-item-115" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-115"><a title="Rails fundamentals workshop" href="http://live.readysetrails.com/signup/">Rails Fundamentals Workshop</a></li> | |
<li id="menu-item-431" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-431"><a href="http://www.readysetrails.com/index.php/pairing-as-a-service/">Pairing as a Service</a></li> | |
<li id="menu-item-731" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-731"><a href="http://www.readysetrails.com/index.php/how-to-learn-ruby-on- |
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
<div id="header_content"> | |
<div class="container"> | |
<div class="inner"> | |
<div class="header_logo"> | |
<a href="http://www.readysetrails.com" title="Ready Set Rails" class="tb-image-logo"><img src="http://dvdsbge8erttd.cloudfront.net/wp-content/uploads/rsr_logo-520x100.png" alt="Ready Set Rails"></a> </div><!-- .tbc_header_logo (end) --> | |
<div class="social-media"> | |
</div><!-- .social-media (end) --> | |
<div class="clear"></div> | |
</div><!-- .inner (end) --> | |
</div><!-- .container (end) --> |
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
Pick jacket up off chair. | |
Unzip the zipper. | |
Locate the opening of the left sleeve at the shoulder. | |
Put your left hand at that opening and thrust it through to the opening at the other end until the hand is free of the cuff. | |
Pull jacket around the back of you. | |
Do the same thing on the other side! | |
Do up the zipper. |
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
Using computer/Ruby terms – arrays, strings, etc, rather than the ‘sights used to line up a target’ metaphor they used in the exercise - what is happening when we type “poem[‘toast’] = ‘honeydew’” and the word ‘honeydew’ is substituted for the first occurrence of ‘toast’ in the poem? Or is this no relation to arrays and the fact that they both use square brackets just coincidence? | |
We use the same thing later: Dir[‘/*.txt’]… is it a method? What can it be used on? | |
=============== | |
What is going on here? | |
books.values.each { |rate| ratings[rate] += 1 } |