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
# Monkey Patch Array so we can already use my method on any array object | |
class Array | |
# I want to have the nice form of array_object DOT method, so I need to pass self in outside of the recursion | |
def flatten_me | |
incoming_array = self | |
recursive_flatten(incoming_array) | |
end | |
# Expose only one method | |
private |
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
def recursive_flatten(incoming_array, new_flattened_array = []) | |
incoming_array.each do |item| | |
if item.class == Array | |
# Recursion | |
recursive_flatten(item, new_flattened_array) | |
else | |
new_flattened_array << item | |
end | |
end | |
new_flattened_array |
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
Questions | |
CSS / Atomic Design | |
1. Can you explain the grid system again? | |
2. So the Javascript files in "lib" basically prepare the content from PhraseApp and Contentful. Then these files are called into the Jade templates, e.g. | |
3. How does cityLandingData get its information from "entry"? Is this a giant Javascript object with all the other content inside, e.g. example trips, covered airports, etc.? If so, where does "entry" get created? | |
4. How can we play around with these Javascript objects like Ruby let's us do with, say, IRB or binding.pry? | |
Node | |
1. What's the relationship between Node and Nginx? Aren't they both web servers? Why not just use Node to serve up static files? If you are using Nginx, why do you then need Node anymore? |
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
Application |
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
"Sinatra" |
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
todo-tweeter |
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
Stoic Doctrines | |
= @doctrines.each do |doctrine| | |
= render file: "doctrines#{doctrine.file_name}.html.haml" |
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
Missing template doctrines/doctrines_assent.html.haml with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :jbuilder, :haml]}. Searched in: | |
* "/Users/Henryvw/Desktop/workspace/stoic_compass/app/views" | |
* "/Users/Henryvw/.rvm/gems/ruby-2.0.0-p451/bundler/gems/activeadmin-0c83cfe0b9b4/app/views" | |
* "/Users/Henryvw/.rvm/gems/ruby-2.0.0-p451/gems/kaminari-0.16.1/app/views" | |
* "/Users/Henryvw/.rvm/gems/ruby-2.0.0-p451/gems/devise-3.3.0/app/views" | |
* "/Users/Henryvw/Desktop/workspace/stoic_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
= form_for @rehearsal do |f| | |
.field | |
= f.label :tally | |
= f.number_field :tally | |
%p | |
%b Questions: | |
- @rehearsal.exercise.e_questions.each do |e_question| | |
%tr |
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
= form_for @rehearsal do |f| | |
.field | |
= f.label :tally | |
= f.number_field :tally | |
%p | |
%b Questions: | |
- @rehearsal.exercise.e_questions.each do |e_question| | |
%tr |
NewerOlder