Skip to content

Instantly share code, notes, and snippets.

View iscott's full-sized avatar

Ira Herman iscott

View GitHub Profile
iscott / console.js
Created April 10, 2024 20:39 — forked from garside/console.js
Shopify Audit Permissions
* Shopify Admin Auditing
* Copyright (c) 2022 Eric Garside (
* Available under the MIT license:
// The selector for permssion checkboxes label sets on the individual user pages (if shopify changes this)
const permissionSelector = 'label.Polaris-Choice_j5gzq:not([for^="Polaris"])'
// The selector for permission text within the checkbox label
iscott /
Created July 23, 2021 16:38
Cheatsheet: Intro to React Native

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 /
Last active August 23, 2023 14:06
How to get rails to work on an M1 Mac


Experimenting with this instead:

  • rbenv versions
  • rbenv uninstall x.y.z # uninstall all versions from the last step
  • brew uninstall rbenv
  • uninstalling homebrew
  • removing
  • reinstall homebrew - not in rosetta 2
iscott /
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 /
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 (
            <Link to="/">Home</Link>
iscott /
Last active April 24, 2021 20:36
How ES6+ Destructuring Works

How destructuring works:

Given the JS Object:

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

making variables WITHOUT using destructuring:

iscott /
Last active October 30, 2023 12:41
Intro to Datastructures and Algorithms Cheat Sheet

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

// Connect to mongodb:
// Load up our models: