Skip to content

Instantly share code, notes, and snippets.

View dpatlut's full-sized avatar
🥊
Always learning

David Patlut dpatlut

🥊
Always learning
  • Codecademy
  • Brooklyn
View GitHub Profile
@dpatlut
dpatlut / onboarding.py
Created May 15, 2024 00:06
Astro API Onboarding Script
"""
Creates a new workspace called MY_NEW_WORKSPACE_NAME in your organization
with 3 deployments:
- development
- staging
- production
"""
import os
import requests
@dpatlut
dpatlut / con-red-thunk.md
Created December 4, 2020 02:16
Connect/CombineReducers/Thunks Exit Ticket

Day 20: Connect, Thunks, combineReducers

You should be able to:

  • Use connect from react-redux to connect a React component to the Redux store, including defining appropriate mapStateToProps and mapDispatchToProps
  • Use thunks to perform AJAX requests with a React/Redux application
  • Use combineReducers to split your reducer function into separate functions, each managing independent slices of your store's state

connect modifies the original component

@dpatlut
dpatlut / roundout.md
Created November 23, 2020 22:56
Express/Seq. Rounding Out

Day 10: Express Custom Error Handling, Eager Loading with Sequelize

Credit: Noelle Laureano

You should be able to:

  • Write custom error handlers in Express
  • Utilize eager loading in Sequelize queries
  • Write class and instance methods on Sequelize models
@dpatlut
dpatlut / day8ET.md
Created November 19, 2020 05:00
PG Exit Ticket

Day 08: pg, Express Routing, REST

You should be able to:

  • Describe the role of pg in our stack
  • Define REST and its advantages
  • Create and mount Express Routers
  • Explain the role of body parsing middleware

What role does node-postgres assume when communicating with postgres?

@dpatlut
dpatlut / day1ET.md
Created November 10, 2020 05:28
Git Exit Ticket Solution

Day 01: Git and pairing

You should be able to:

  • Manage a project using git
  • Practice effective pair programming

Which git command adds files to the staging area?

  • status: Displays the current state of the working directory and staging area
@dpatlut
dpatlut / react-forms-extick.md
Created October 16, 2020 09:50
React Forms Exit Ticket

Day 17 - React Forms

You should be able to:

  • Explain the difference between controlled and uncontrolled forms.
  • Build a form using React.
  • Explain the difference between local state and application state.

Controlled forms require... (check all that apply)

@dpatlut
dpatlut / reduxet.md
Created October 15, 2020 02:29
redux-exit-ticket

Day 16: Redux

You should be able to:

  • Create a Redux store (with a proper reducer and any necessary middleware)
  • Write action types and creators corresponding to your store
  • Subscribe to store changes
  • Dispatch state-changing actions to the store

In your own words, what is Redux and why do we use it?

@dpatlut
dpatlut / exit-ticket-sql.md
Created October 1, 2020 12:47
SQL/Database Exit Ticket Solution

Day 07: SQL, PostgreSQL, Schema Design

You should be able to:

  • Explain what a database is, and why you would use one
  • Write SQL queries using some common keywords (SELECT, FROM, WHERE, ORDER BY, JOIN, etc)
  • Articulate what a primary key is
  • Articulate what a foreign key is, and why you would use one
  • Explain the differences between a 1-to-1, 1-to-many, and many-to-many relationship
@dpatlut
dpatlut / exit-ticket-dom.md
Created September 24, 2020 21:48
Exit Ticket Day 3 DOM

Day 03: Debugging, DOM

You should be able to:

  • Be able to identify common ways to debug software and procedures to prevent bugs
  • Define the DOM
  • Set up event listeners to handle DOM events
  • Manipulate the DOM using the DOM API
  • Explain how a browser uses HTML, CSS, and JavaScript to display a web page
@dpatlut
dpatlut / nodeversion.md
Last active September 18, 2020 18:34
Node Version

If you have Node 14 (ie, when you run node -v you get 14.x.x) follow these steps:

  1. Downloading nvm (node version manager - helps you switch between node versions seamlessly) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash

  2. Restart your iTerm/terminal/etc.

  3. Check that you have nvm (run nvm in command line, and it should output a list of options. If you get command not found , we can take a look at your config).