Skip to content

Instantly share code, notes, and snippets.

@mfeinLearn
mfeinLearn / The Technical Interview Cheat Sheet.md
Created January 10, 2025 12:49 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

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!






\

@mfeinLearn
mfeinLearn / React.md
Created April 9, 2020 21:04 — forked from taniarascia/React.md
React notes

React Notes

  • A React component can only return one parent element.
return <h1>Hello</h1><p>World</p>            // error
return <div><h1>Hello</h1><p>World</p></div> // okay 
  • JavaScript expressions can be interpolated in JSX with {}
{
"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,
@mfeinLearn
mfeinLearn / rails http status codes
Created November 4, 2019 22:19 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
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
dogs = [
{
name: "fido",
age: 4,
likes: ["play fetch", "bark", "piddle"]
},
{
name: "spot",
age: 10,
likes: ["sleep"]
# 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