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