Skip to content

Instantly share code, notes, and snippets.

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@ross-u
ross-u / ad.md
Created October 8, 2019 15:27 — forked from diurivj/ad.md

React | Hooks

Learning Goals

After this lesson you will be able to:

  • Understand what are React Hooks and why are so hot 🔥
  • Understand how to use useState()
@ross-u
ross-u / README.md
Created October 26, 2019 13:58 — forked from joyrexus/README.md
form-data vs -urlencoded

Nice answer on stackoverflow to the question of when to use one or the other content-types for POSTing data, viz. application/x-www-form-urlencoded and multipart/form-data.

“The moral of the story is, if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use multipart/form-data. Otherwise, use application/x-www-form-urlencoded.”


Matt Bridges' answer in full:

The MIME types you mention are the two Content-Type headers for HTTP POST requests that user-agents (browsers) must support. The purpose of both of those types of requests is to send a list of name/value pairs to the server. Depending on the type and amount of data being transmitted, one of the methods will be more efficient than the other. To understand why, you have to look at what each is doing

@ross-u
ross-u / MongoDB_Installation.md
Created November 10, 2019 17:16 — forked from diurivj/MongoDB_Installation.md
This is the MongoDB's recommended way to install MongoDB Enterprise Server.

MongoDB Installation

1. Download the files from MongoDB's page:

MongoDB recommends to use the most complete version of MongoDB Server, in order to do this, we will download MongoDB Enterprise. Download the package for your SO in TGZ format.

2. Extract the files:

$ tar -xvzf [name-of-the-file.tgz]
@ross-u
ross-u / enterpreneur-quotes.json
Created March 18, 2020 09:23 — forked from b1nary/enterpreneur-quotes.json
325 Enterpreneur Quotes as JSON
[
{
"text":"The only people who never fail are those who never try.",
"from":"Ilka Chase"
},
{
"text":"Failure is just another way to learn how to do something right.",
"from":"Marian Wright Edelman"
},
{

Materials

Presentation

Feel free to use this presentation as a reference.

Starting Code

Open this CodeSandbox and start editing. It will automatically create a fork (that is, a duplicate) for you to work on.

/*
FOR TEST EXAMPLES AND DIFFERENT MATCHERS (`toEqual`, `toBe`, `not.toBe`, etc):
https://jasmine.github.io/api/3.4/global
*/
describe('centsToDecimals function', () => {
// Describes the suite / group of tests
// Use this test suite as a starting point/reference.
@ross-u
ross-u / gist:75b2acf0ca2e497b3d717619a932dceb
Created April 30, 2020 14:18 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
@ross-u
ross-u / README.md
Last active August 21, 2020 07:35 — forked from caprosset/README.md
Deployment con Heroku y Firebase - M3 - React

Proyecto 3 - DEPLOY

 

PARTE 1 - BACK-END: HEROKU Y MONGO ATLAS

 

1. GUARDAR Y SUBIR LOS ÚLTIMOS CAMBIOS A GITHUB