Skip to content

Instantly share code, notes, and snippets.

View shayan-golafshani's full-sized avatar

Shayan | シャーヤン shayan-golafshani

View GitHub Profile

React Router Prework

This gist contains a short assignment I'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions

You will not be turning this in; it's for your own understanding/learning/benefit 😁

@shayan-golafshani
shayan-golafshani / revert-a-commit.md
Created May 16, 2021 21:40 — forked from gunjanpatel/revert-a-commit.md
Git HowTo: revert a commit already pushed to a remote repository

Revert the full commit

Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.

git revert {commit_id}'

About History Rewriting

Delete the last commit

Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:

@shayan-golafshani
shayan-golafshani / romcom_DTR
Last active March 30, 2021 23:37 — forked from saberg1/romcom_DTR
romcom_DTR
Project: romcom
Group Member Names: Shayan G & Steven B
Goals and Expectations for the Project (What does each group member hope to get out of this project? What do we want to achieve as a team? How will we know that we're successful?):
We hope to learn how to implement the Javascript that we've been learning into the project. As a team, we want to achieve a clean implementation of the spec with
more extra feautures in place. We also want to have a solid understanding of all the pieces of code and how they connect. We'll know that we're successful, by looking over the spec together and making sure
we have all the implementation in place that we need to have in place. Particularly, we want a better understanding of event bubbling and DOM manipulation through JavaScript.

Checklist/Rubric

Part I: Creating Directories and Files; Initializing Git and Pushing to GitHub

  • I named my directories correctly.
  • I named my files correctly.
  • I structured my files and directories correctly.
  • I made only one initial commit.
  • I pushed my initial commit to GitHub.