Skip to content

Instantly share code, notes, and snippets.

View iscott's full-sized avatar

Ira Herman iscott

View GitHub Profile
@iscott
iscott / git_workflow_cheatsheet.md
Created April 2, 2020 00:51
Git Workflow Cheatsheet

Git Workflow CheatSheet

By Ira Herman


Use this workflow when working with teams to take advantage of Pull Requests and keep the master branch clean.

Creating and using your own branch locally:

RESTful Routes to CRUD Mapping

Example resource: fruits

In I.N.D.U.C.E.S. route order:

URL HTTP Verb Action Notes
/fruits/ GET index INDEX when a user types localhost:3000/fruits in browser this route shows a list or index of all fruits
/fruits/new GET new NEW when a user types localhost:3000/fruits/new in browser this route shows the user a form to create a NEW fruit
@iscott
iscott / classroom_culture.md
Created April 2, 2020 15:55
Classroom culture, intentions, and how to succeed

Classroom Culture

How to succeed in class:

  • Take initiative.
  • Ask for help.
  • Practice, practice, practice.

Let's all agree to:

  • Treat each other with respect
  • Avoid bringing distractions into class

Run Server:

python3 manage.py runserver

Create DB:

createdb

Make migrations:

python3 manage.py makemigrations

Migrate DB:

@iscott
iscott / node_console_repl_shell_for_mongoose.md
Created August 10, 2020 21:35
How to access your MongoDB in a command-line node shell using mongoose

How to access your MongoDB in a command-line node shell using mongoose

To load up a node console where you can access the database:

in terminal, run node then paste in these lines:

require("dotenv").config();
// Connect to mongodb:
require("./config/database");
// Load up our models:
@iscott
iscott / movies_app_react_coding_challenge.md
Last active December 6, 2020 18:30
"Take-Home" Coding Challenge: Movies App

"Take-Home" Coding Challenge: Movies App

By Ira Herman


This code challange prompt is modeled after real-world take-home code challenges/prompts many companies use as part of their technical interview process.

This will help you practice/prepare to build a mini-project off of specs, and give you practice/reinforcement using ReactJS with an API back end.

React Router

By Alex Merced Updates by Ira Herman

React Router Logo

Learning Objectives

  • Use React Router's BrowserRouter, Link, Route, Redirect, and Switch
@iscott
iscott / ds_and_algos.md
Last active October 30, 2023 12:41
Intro to Datastructures and Algorithms Cheat Sheet
@iscott
iscott / how_destructuring_works.md
Last active April 24, 2021 20:36
How ES6+ Destructuring Works

How destructuring works:

Given the JS Object:

const user = { name: "Ira", email: "[email protected]", favColor: "blue" };

making variables WITHOUT using destructuring:

@iscott
iscott / 4_ways_jsx_arrow_functions.md
Last active April 5, 2021 16:01
4 Different Ways To Write An Arrow Function With JSX

4 different ways to write an arrow function with JSX

const SettingsPage = (props) => {
    return (
        <>
            <h1>SettingsPage</h1>
            <Link to="/">Home</Link>
        </>
 );