Skip to content

Instantly share code, notes, and snippets.

View iscott's full-sized avatar

Ira Herman iscott

View GitHub Profile
@iscott
iscott / git_branches_and_merging.md
Last active April 17, 2021 15:49
Git branches and merging

Basic workflow for git branching:

Create a branch called "my_feature_branch" and change your git to working on that branch:

git checkout -b my_feature_branch

The branch is an exact clone of what master was when you ran the command.

@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>
        </>
 );

Run Server:

python3 manage.py runserver

Create DB:

createdb

Make migrations:

python3 manage.py makemigrations

Migrate DB:

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 / 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.

@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
@iscott
iscott / 00-intro-to-hooks.md
Created March 24, 2020 17:03
Intro to React Hooks

React Hooks

Intro to Hooks

Hooks were introduced in React Version 16.8.

Before hooks, all state needed to be within a Class component. Class components come with a lot of boilerplate, which can feel bulky, especially when dealing with a simpler state. Function components, on the other hand, are generally simpler and easier to read - but, until recently, could not manage their own state: they would receive some props, and return some JSX based on those props.

Hooks introduce state management to Function components, using a simpler and more flexible API. Here's an example of a Class component refactored to be a Function component with hooks:

Run Server:

python3 manage.py runserver

Create DB:

createdb <dbname>

Make migrations:

python3 manage.py makemigrations

Migrate DB:

@iscott
iscott / mean_app.md
Last active September 11, 2018 05:10
MEANbean Full MEAN stack CRUD app cheatsheet

Cheat Sheet: MEANbean coffee shop

A cheatsheet by Ira Herman

Specs
AUTHOR Ira Herman
LANGUAGE/STACK Node JS 6.x/MEAN Stack
OUTCOME A full stack MEAN application with CRUD actions
@iscott
iscott / atom_packages.md
Created May 17, 2018 17:18
My Recommended Atom Packages and Theme to make Atom a Fully-Featured Editor

Atom Packages & Notes

This document will recommend some of my favorite packages (plugins, add-ons, whatever you want to call them...they're awesome) for the Atom text editor. These give atom many of the features of a full IDE (Integrated Development Environment).

Atom Website

To browse & install packages, (in the menu bar) go to Atom >> Preferences >> Install and search for your desired package. Click install. That's it!

There are links to the package documentation from the Atom site. You can also view instructions on how to use each package from the packages menu Atom >> Preferences >> Packages