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
| Scope: Defines where a specific bit of code to be run is available. | |
| Controller: Adds or changes behaviors within the scope | |
| Data binding: Synchronizes data instantly between model and view (2 way) | |
| Dependency injection: Deals with how components, controllers, and modules get their dependencies. | |
| Directive: Attaches logic or components of the view to the DOM | |
| Module: Contain packages of code, like namespace |
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
| ActionController::RoutingError: No route matches [GET] "/fonts/raleway/Raleway-Regular.woff" |
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
| ~/P/p/portfolio dev ✔ host www.petemmitchell.com | |
| ~/P/p/portfolio dev ✔ dig www.petemmitchell.com | |
| ; <<>> DiG 9.8.3-P1 <<>> www.petemmitchell.com | |
| ;; global options: +cmd | |
| ;; Got answer: | |
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62615 | |
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 | |
| ;; QUESTION SECTION: |
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
| <script> | |
| var usa, ghana, portugal, germany, miles; | |
| function Racer(name, speed, intelligence, luck) { | |
| this.name = name; | |
| this.speed = speed; | |
| this.intelligence = intelligence; | |
| this.luck = luck; | |
| this.position = 0; | |
| this.race = function() { |
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
| <script> | |
| var answer; | |
| var guessingGame = function(answer) { | |
| var guess, difference; | |
| guess = prompt("I'm thinking of a number between 1 & 20. Can you guess what it is?") | |
| difference = Math.abs(guess - answer) | |
| if(guess == answer) { | |
| alert("You win a new car!") | |
| return; | |
| } |