Skip to content

Instantly share code, notes, and snippets.

View jasonnoble's full-sized avatar

Jason Noble jasonnoble

View GitHub Profile
def hello
puts "Howdy!"
end
def hello_world
puts "Hello World"
end
- What is Pivotal Tracker?
- What’s the difference between a 1 point story and 3 point story?
- T/F - Once you understand a topic, you should stop quizzing on that topic?
- What do story labels help you accomplish?
- What is current?
- Why is quizzing yourself on Ruby, then command line a good idea?
- Why is calibration important?
- Give an example of elaboration?
- What is a story estimate?
- If a developer is ready to work on the next story, what is the process?
attr_reader :balance
# is equivalent to
# def balance
# @balance
# end
attr_writer :balance
class Player {
var name:String
var activeRound:Round
init(name: String) {
self.name = name
self.activeRound = Round()
}
}
//: Playground - noun: a place where people can play
// 1) Using git on the command line, how do you tell if there are
// changes on a remote?
// git fetch [remote]
// 2) How do you retrieve the changes?
// git pull
// 3) What is Github and what is it used for?
@jasonnoble
jasonnoble / hello_world.rb
Created February 4, 2016 04:42
My Hello World
puts "Hi"
if number > 7
puts "Yup"
end
class Player
@last_known_health = nil
RETREAT= 20 * 0.40
ONWARD= 20 * 0.75
def play_turn(warrior)
@last_known_health = warrior.health unless @last_known_health
if warrior.feel.empty?
# The next block is empty

Let us Rebase

This weekend, while you're doing your mini-projects we are going to get some practice with 2 things.

  • Hound - A tool that monitors your pull requests and will notify you of syntax and style errors within your code.
  • Rebasing - a git tool that will allow you to clean up your commit messages.

What are we going to do?

First - Integrate Hound in your project.

suits = ['♠', '♥', '♦', '♣']
ranks = (1..10).map(&:to_s) + ['J', 'Q', 'K', 'A']
suits.each do |suit|
ranks.each do |rank|
# Make a card utilizing suit and rank
end
end