####Become a testing ninja
Karen: It’s like I have ESPN or something! I can tell when my code is going to raise an error.
Kady: Oh, really!
Karen: Well, I can tell when it’s raised an error.
####Coaches are awesome helper alumni!
# Welcome to Sonic Pi v2.9 | |
# #Adele 'Hello' chorus | |
quarter = 0.25 | |
half = 0.5 | |
three_quarter = 0.75 | |
whole = 1.0 | |
one_and_half = 1.5 | |
one_and_three_quarter = 1.75 | |
two_and_half = 2.5 | |
# Hello from the other side, I |
# Welcome to Sonic Pi v2.9 | |
# #Adele 'Hello' chorus | |
# #Hello from the other side, I | |
play 53 | |
sleep 0.5 | |
play 53 | |
sleep 0.5 | |
play 56 | |
sleep 0.5 | |
play 56 |
body { | |
background-image: url('http://pcmreviews.com/news/wp-content/uploads/2012/01/Red-carpet.jpg'); | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-position: center; | |
color: white; | |
font-family: 'Parisienne', cursive; | |
} | |
.header{ |
####Become a testing ninja
Karen: It’s like I have ESPN or something! I can tell when my code is going to raise an error.
Kady: Oh, really!
Karen: Well, I can tell when it’s raised an error.
####Coaches are awesome helper alumni!
###From Make Them Believe You
HOW TO BECOME A MORE CREDIBLE TEACHER
Trust
Adapt messages for listeners by being sincere and honest in the presentation of information.
Identify strengths and weaknesses in information - for example, reliability and bias - to demonstrate honesty.
class BoggleBoard | |
def initialize | |
@board = Array.new(4) { Array.new(4, "____") } | |
end | |
def shake! | |
@board.each do |row| | |
row.map! { |die_face| die_face = (65 + rand(25)).chr } | |
end |
# accepts a string as an argument and checks it for the following requirements: | |
# password must contain at least 6 characters, and no more than 20 characters | |
# password must contain at least one capital letter | |
# password must contain at least one number or a special character | |
# | |
# if using a special character, only the following are allowed: !, @, #, $, %, &, *, +, :, ? | |
# !@#$%&*+:? | |
# if the password passes the above requirements, return "Valid Password" | |
# | |
# if the password fails any of the above requirements, return a message indicating which rule the password is failing |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>DOM manipulation with jQuery</title> | |
<!-- Add a link to jQuery CDN here script here --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script type="text/javascript" src="jquery_example.js"></script> | |
</head> |
class BoggleBoard | |
def initialize(board) | |
@board = board | |
end | |
def create_word(*coords) | |
coords.map { |coord| @board[coord.first][coord.last]}.join("") | |
end |