Skip to content

Instantly share code, notes, and snippets.

@ross-u
ross-u / README.md
Last active May 12, 2021 17:18
M2 - Initlize npm and install a package - Exercise

Initlize npm and install a package - Exercise


img


@ross-u
ross-u / index.js
Created October 26, 2020 11:42
Deep copying custom function
function cloneObject(object) {
let copy;
if (Array.isArray(object)) {
copy = [];
} else {
copy = {};
}
@ross-u
ross-u / this-intro.js
Created October 23, 2020 11:10
This intro examples
// this - Special function's keyword
// Special value that exists only in functions (and class)
// this is used to represent the context of the function.
// context - the space/scope from which the function was called/invoked.
// Depending on how the function is being called, the context (value of this) changes.
@ross-u
ross-u / index.js
Created October 23, 2020 06:35
Exercise Solution - Get the final grade (M1 W1)
const students = [
{
name: "Tony Parker",
firstProject: 80,
secondProject: 75,
finalProject: 90
},
{
name: "Marc Barchini",
firstProject: 84,
@ross-u
ross-u / main.css
Created October 15, 2020 12:44
Media queries - universal and simple M1
@media screen and (max-width: 700px) {
}
@media screen and (max-width: 990px) and (min-width: 710px) {
}
@media screen and (min-width: 1000px) {
@ross-u
ross-u / README.md
Created August 27, 2020 12:39 — forked from caprosset/README.md
Heroku deployment - M3

PROJECT 3 - DEPLOYMENT ON HEROKU

1. SIGNUP/LOGIN TO HEROKU

Run the following commands in your terminal (in your SERVER/BACKEND repo):

heroku --version

If it gives you a version, it means that the Heroku CLI interface is correctly installed.
If not, create an account in Heroku (https://signup.heroku.com/) and repeat.

@ross-u
ross-u / gist:e61c81e01740ccc61b7d922774ac9be5
Created August 23, 2020 14:40 — forked from mrichie/gist:2849763
Node.js File Extension Content Type
exports.ext = function () {
var extTypes = {
"3gp" : "video/3gpp"
, "a" : "application/octet-stream"
, "ai" : "application/postscript"
, "aif" : "audio/x-aiff"
, "aiff" : "audio/x-aiff"
, "asc" : "application/pgp-signature"
, "asf" : "video/x-ms-asf"
, "asm" : "text/x-asm"
@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

Repaso React

Porque React ?

React nos permite crear aplicaciones y proyectos que antes tomaban meses en un plazo de dias.

@ross-u
ross-u / README.md
Last active November 18, 2020 15:12
M2 Project (hbs) - Git Collaboration

M2 Project - Git Flow

Initial setup: