Skip to content

Instantly share code, notes, and snippets.

@ross-u
ross-u / README.md
Last active July 29, 2020 09:09
M2 ESLint setup - step by step guide

M2 project - ESLint basic setup


Initialize and setup the eslint for the current project:

Git adaptive lecture - recap and daily usage

Setup the global username, email for future commits

In the terminal

@ross-u
ross-u / README.md
Last active January 27, 2021 12:48
M1 - Deployment with Github Pages (ES)

M1 - Deployment (ES)


Actualizar el proyecto y guardar los ultimos cambios

Antes de desplegar nuestro proyecto, primero guardaremos los ultimos cambios con una commit y subiremos los cambio al GitHub (git push origin master).

@ross-u
ross-u / functions-and-arrays.js
Last active October 20, 2020 21:36
LAB solution - M1 | Functions and Arrays - WDFT EN 10/2020
// Iteration #1: Find the maximum
const maxOfTwoNumbers = (a, b) => {
if(a > b) return a;
else if (b > a) return b;
else return a
};
// Iteration #2: Find longest word
const words = ['mystery', 'brother', 'aviator', 'crocodile', 'pearl', 'orchard', 'crackpot'];
@ross-u
ross-u / README.md
Last active October 19, 2020 07:09
Ironhack - WDFT 06/2020 - Videos
@ross-u
ross-u / README.md
Last active June 29, 2020 15:50
Comandos de Git - Los apuntes (flujo de trabajo)

Básicos de Git

Comandos de Git - Los apuntes (Cheat sheet)


@ross-u
ross-u / subscribeOnAuth.js
Created June 12, 2020 16:14
Subscription function test
function mockFetch(str) {
return new Promise((resolve, reject) => {
setTimeout(() => resolve({ name: "Uros", job: "SE" }), 3000);
});
}
function subscribeOnAuth(cb) {
const unsub = () => {
console.log("unsubed");
cb = () => console.log("nothing");;
@ross-u
ross-u / App.js
Created June 10, 2020 12:58
React - Send cursor to the end of the text/password input
import React, { useState, useEffect, useRef, useCallback } from "react";
function TextField() {
const [type, setType] = useState("text");
const [inputValue, setInputValue] = useState("text");
const inputRef = useRef();
const handleChange = e => setInputValue(e.target.value);
const onToggle = useCallback(() => {
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel