Skip to content

Instantly share code, notes, and snippets.

Avatar

Ira Herman iscott

View GitHub Profile
@iscott
iscott / intro_to_react_native.md
Created Jul 23, 2021
Cheatsheet: Intro to React Native
View intro_to_react_native.md

Intro to react-native cheatsheet

By Ira Herman

Notes to help you get started in react-native.

Cheatsheet Objectives

  • Explain how react-native apps work, native UI with JS for logic.
  • Explain what Expo does.
@iscott
iscott / rails_m1_mac_installation.md
Last active Jun 23, 2021
How to get rails to work on an M1 Mac
View rails_m1_mac_installation.md

UPDATE IN PROGRESS:

Experimenting with this instead:

  • rbenv versions
  • rbenv uninstall x.y.z # uninstall all versions from the last step
  • brew uninstall rbenv
  • uninstalling homebrew
  • removing postgres.app
  • reinstall homebrew - not in rosetta 2
@iscott
iscott / git_branches_and_merging.md
Last active Apr 17, 2021
Git branches and merging
View git_branches_and_merging.md

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 Apr 5, 2021
4 Different Ways To Write An Arrow Function With JSX
View 4_ways_jsx_arrow_functions.md

4 different ways to write an arrow function with JSX

const SettingsPage = (props) => {
    return (
        <>
            <h1>SettingsPage</h1>
            <Link to="/">Home</Link>
        </>
    );
@iscott
iscott / how_destructuring_works.md
Last active Apr 24, 2021
How ES6+ Destructuring Works
View how_destructuring_works.md

How destructuring works:

Given the JS Object:

const user = { name: "Ira", email: "ira@example.com", favColor: "blue" };

making variables WITHOUT using destructuring:

@iscott
iscott / ds_and_algos.md
Last active Jul 20, 2021
Intro to Datastructures and Algorithms Cheat Sheet
View ds_and_algos.md
View react_router.md

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 Dec 6, 2020
"Take-Home" Coding Challenge: Movies App
View movies_app_react_coding_challenge.md

"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 / node_console_repl_shell_for_mongoose.md
Created Aug 10, 2020
How to access your MongoDB in a command-line node shell using mongoose
View node_console_repl_shell_for_mongoose.md

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:
View python_django_command_lines.md

Run Server:

python3 manage.py runserver

Create DB:

createdb

Make migrations:

python3 manage.py makemigrations

Migrate DB: