Skip to content

Instantly share code, notes, and snippets.

@Laner12
Laner12 / prework.md
Last active March 18, 2016 00:31 — forked from mbburch/prework.md
Lane's Prework

Turing School Prework: Lane Winham

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist:

Exercises

  • If you had an array of numbers, e.g. [1,2,3,4], how do you print out the doubles of each number? Triples?
  • If you had the same array, how would you only print out the even numbers? What about the odd numbers?
  • How could you create a new array which contains each number multipled by 2?
  • Given an array of first and last names, e.g. ["Alice Smith", "Bob Evans", "Roy Rogers"], how would you print out the full names line by line?
  • How would you print out only the first name?
age = 5
wishes = (age * "happy " + "Birthday!").capitalize
puts wishes
puts "HI GUYS"
puts "10 times 10 is #{10 * 10}"
@Laner12
Laner12 / oop.rb
Created March 24, 2016 23:24 — forked from worace/oop.rb
class Dog # class name is a "constant"
# Objects combine:
# -- state (instance variables)
# -- behavior (methods)
def initialize
# first step in the object's lifecycle
# do i have any setup i actually need to do?
@animals_chased = []
end
@Laner12
Laner12 / Mod1_tools.md
Created March 25, 2016 21:01 — forked from JaredRoth/Mod1_tools.md
Make Mod 1 a little easier: Using Atom, Terminal, and other tools

Jared

iTerm

  • Get it
  • Preference changes to get certain shortcuts to behave the same as the rest of the system:
  • Preferences -> profiles -> Keys
  • ⌘-left: Send Hex Codes: 0x01
  • ⌘-right: Send Hex Codes: 0x05
  • Left option key: +Esc
  • Option-left: Send Escape sequence: b
  • Option-right: Send Escape sequence: f

Enums Homework Part 1

Do by April 4.

git clone http://github.com/turingschool/enums-exercises

Do the following in order:

  • What do you know about modules already? If little, what would you guess modules are all about?
  • Golf and basketball both use a ball. But if you're on a basketball court and ask for "the ball," no one is going to throw you a golf ball. Why? If you were as dumb as a computer, why would a golfd ball be an acceptable response?
  • You've learned about the object model and method lookups. What would the imapct be of injecting an additional ancestor into a class' lookup chain?
@Laner12
Laner12 / week_3.markdown
Last active May 26, 2016 17:47 — forked from worace/week_3.markdown
Module 1 Week 3 Diagnostic

Module 1 Week 3 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short snippet of code that meets the requirement. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).