Skip to content

Instantly share code, notes, and snippets.

View nathanielmata's full-sized avatar

Nathaniel Mata nathanielmata

View GitHub Profile
Role Task Importance
As an unregistered user I want to see clear, easily understandable instructions about what the application does and how to use it. High
As an unregistered user I want to create an account High
As a registered user I want to login High
As a registered user I want to ensure my account's security by logging out High
As a registered user I want to create a new css animation High
As a registered user I want to edit an existing animation High
As a registered user I want the send messages to other registered users Low
As a registered user I want to save an animation High
@nathanielmata
nathanielmata / capstone2_pages.md
Created October 30, 2020 02:20
capstone2 pages

Pages

Private Routes

Dashboard (show your last 6 animations, show showcase of public animations)
New Animation Editor Page
Existing Animation Editor Page
User Profile Page
Generate CSS Code Page

@nathanielmata
nathanielmata / capstone2_roles.md
Created October 29, 2020 02:51
Captone2 Roles

Captone2 Roles

NATHAN / BRIAN (Project Manager)

  • pick a project management tool (trello or github issues)
  • make sure each person has clear feature to work on
  • divvy work by feature or frontend/backend of feature

SULTANA (Product Manager)

@nathanielmata
nathanielmata / replace_reserved_chars.txt
Last active October 4, 2020 17:38
replace reserved characters with HTML Entity
function escapeHtml(unsafe) {
const unsafeCharList = {
"&": "&",
"<": "&lt;",
">": "&gt;",
"'": "&#039;",
'"': "&quot;",
}
return unsafe.replace(/[&<>\'"']/g, function(match) {
@nathanielmata
nathanielmata / merge_two_repos.md
Created September 9, 2020 03:29
Some steps to merge two repos

So you want to merge two repos?

Here are some steps that worked for me on two repos with very few merge conflicts.

If you have two repos, repoA and repoB, and you want to copy everything including the history of repoB into repoA

  1. on your local machine create a directory called temp-dir and cd into it
mkdir temp-dir
cd temp-dir
@nathanielmata
nathanielmata / Module14_Checkpoint2_learning_a_new_codebase.md
Last active August 23, 2020 23:53
Module14 Checkpoint2 Learning a New Codebase
  1. How are the syntaxes async and await useful when writing JavaScript code?
The async and await keywords enable asynchronous, promise-based behavior to be written in a cleaner style, avoiding the need to explicitly configure promise chains.
  1. With respect to Knex, how does the transaction method relate to BEGIN and COMMIT syntax in PostgreSQL?
Knex transaction() method wraps a sql statement and is equivalent to wrapping a sql statement in BEGIN and COMMIT.
@nathanielmata
nathanielmata / markdown-notes-capstone-user-stories.md
Last active August 2, 2020 21:28
User Stories for Markdown Notes Capstone

UNREGISTERED USER

As an

  • UNREGISTERED USER

I want to

  • write/edit a note in a Markdown editor
  • AND preview the output HTML in the browser

So I can

@nathanielmata
nathanielmata / creating_reading_context.md
Last active June 3, 2020 03:15
Creating and Reading Contex

*Brian *Sultana *Nathaniel

  1. What situations would be good to use context? Context is designed to share data that can be considered “global” for a tree of React components, such as the current authenticated user, theme, or preferred language. Deeply nested components that need global information.

  2. If you need to pass a prop down 1 or 2 levels, is context necessary? No, context is only necessary when working through many levels.