| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
This file contains hidden or 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
| alias ls="ls -FG" | |
| export PATH=/usr/local/devops/bin:"$(brew --prefix homebrew/php/php56)/bin:$PATH" | |
| export PATH=/usr/local/devtools:/usr/local/devops/bin:/usr/local/opt/php56/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
| } | |
| export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ " |
This file contains hidden or 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
| - QUESTION 01 | |
| - How do you think the word "cascading" in "Cascading Style Sheets" relates to specificity? | |
| - Cascading relates to specificity of the selectors used to style the web page | |
| - Styling is applied starting at the most specific then goes to apply the less specific selectors when there is nothing specified for the element | |
| - order of specificity is inline / style attribute, then ID, then Class / attribute / pseudo-class, then element / pseudo-element | |
| - QUESTION 02 | |
| - Given the following HTML and CSS fragments, we expect the text in the H1 to appear green, but it shows up black. What could be the issue? Describe at least three scenarios | |
| - CSS | |
| - body { color: blue; } // specificity = 0001 | |
| - #main h1.alt { color: green; } // specificity = 0111 |
This file contains hidden or 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
| var arrayOfLight = function (x) { | |
| // note that x must be a positive number | |
| // prints from 0 to that number | |
| var result = []; | |
| for (var i = 0; i <= x; i++) { | |
| result.push(i); | |
| } | |
| return result; | |
| }; |
This file contains hidden or 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
| Last login: Tue Oct 27 08:43:36 on ttys000 | |
| Reinhardts-MacBook-Air:lighthouse rhcgr$ vim longest.rb | |
| Reinhardts-MacBook-Air:lighthouse rhcgr$ ruby longest.rb | |
| longest.rb:6:in `count': wrong number of arguments (0 for 1+) (ArgumentError) | |
| from longest.rb:6:in `block in find_longest' | |
| from longest.rb:5:in `each' | |
| from longest.rb:5:in `find_longest' | |
| from longest.rb:13:in `<main>' | |
| Reinhardts-MacBook-Air:lighthouse rhcgr$ vim longest.rb | |
| Reinhardts-MacBook-Air:lighthouse rhcgr$ ruby longest.rb |