Skip to content

Instantly share code, notes, and snippets.

View nathanielmata's full-sized avatar

Nathaniel Mata nathanielmata

View GitHub Profile
@nathanielmata
nathanielmata / travel_app_user_stories.md
Last active April 18, 2020 21:11
Travel app user stories

Travel app user stories

Jonathan and Nathaniel

Role Task Importance notes screen reader / low vision / color blindness / hearing impaired
new user create a profile using html form medium potentially use google oauth create profile form uses appropriate web accessible functionality with semantic html
new user should be able to create a list using html form medium create list form to use semantic html so that it has web accessible features
new user search for place using html form high search form to use semantic html so that it has web accessible features
new user search for weather date range using html form high html form input
return user view profile medium semantic html markup throughout
@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.

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