Skip to content

Instantly share code, notes, and snippets.

@kcooper22
kcooper22 / gist:2f5e7a66ce2846f2b709
Created October 23, 2015 13:20
Kyle Cooper WDI Week 04 Assessment
1. Can you execute Ruby in the Chrome console? Why / why not?
Ruby cannot be executed in the chrome console. I am not exectly sure the technical reasons, but I would guess is that chrome does not have an inheret Ruby envirement to execute the code. This is why we had to create the envirement on our local computers.
2. Write some Ruby code that includes a method that fails to work solely because of a scope issue. Think about how Ruby scope differs from Javascript scope.
array = [1,2]
def add
array[0]+array[1]
@kcooper22
kcooper22 / gist:f9c578db293ee35c59e4
Last active October 9, 2015 13:32
Kyle Cooper WDI Week 2 Assessment
Congratulations on your second week of WDI!
To help us track your progress from the last week, please answer the following questions to the best of your ability:
1. DOM
# Write a line of code that will create a button:
var button = document.createElement('button);
# Write a line of code that will append that button to the document body:
@kcooper22
kcooper22 / gist:237816062faa744343ec
Created October 2, 2015 13:25
Kyle Cooper WDI Week 01 Assessment
Congratulations on your first week of WDI!
At the end of certain weeks we'll assess your progress through the week's material with a series of short questions. This gives us a data set to talk about with you during one on one meetings and code reviews.
You'll be entering these questions in by hand.
Topic
Bash _ / 4
Git _ / 3
Variables _ / 5