I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
| { | |
| "src_folders" : ["tests"], | |
| "output_folder" : "reports", | |
| "selenium" : { | |
| "start_process" : false, | |
| "server_path" : "./bin/selenium-server-standalone-3.3.1.jar", | |
| "log_path" : "", | |
| "host": "127.0.0.1", | |
| "port" : 4444, |
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
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
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
| dogs = [ | |
| { | |
| name: "fido", | |
| age: 4, | |
| likes: ["play fetch", "bark", "piddle"] | |
| }, | |
| { | |
| name: "spot", | |
| age: 10, | |
| likes: ["sleep"] |
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
| # The code that follows is a Dog class with a multitude of class methods | |
| # that filter and transform Dog.all for various purposes. Unfortunately, | |
| # the author of these methods used .each to accomplish the iteration in | |
| # all cases, when .map (or .collect), .find, or .select would have been | |
| # a better choice. Read the code, run it with some test data (create a | |
| # runner file!) and understand what the methods are doing. Refactor to | |
| # use a different array method. | |
| class Dog |