Skip to content

Instantly share code, notes, and snippets.

View caprosset's full-sized avatar
🏠
Working from home

Capucine caprosset

🏠
Working from home
View GitHub Profile
@caprosset
caprosset / README.md
Last active January 29, 2020 18:46
Bootstrap adaptive - Module 1
@caprosset
caprosset / chronometer.js
Last active July 9, 2020 19:24
LAB | JS IronChronometer - Solution
class Chronometer {
constructor() {
this.currentTime = 0;
this.intervalId = 0;
// BONUS =>
this.millisecondsIntervalId = 0;
this.currentMilliseconds = 0;
}
@caprosset
caprosset / index.js
Last active April 23, 2020 13:42
Mongoose recipes - LAB review jan 2020
const mongoose = require("mongoose");
const Recipe = require("./models/Recipe.model"); // Import of the model Recipe from './models/Recipe.model.js'
const recipesJS = require("./data.js"); // Import of the data from './data.js'
// Connection to the database "recipeApp"
mongoose
.connect("mongodb://localhost/recipe-app-dev", {
useCreateIndex: true,
useNewUrlParser: true,
useUnifiedTopology: true
@caprosset
caprosset / GitFlow-Project2.md
Last active May 5, 2020 16:18
M2 Project - Git Flow

M2 Project - Git Flow

Initial setup:

@caprosset
caprosset / README.md
Last active August 17, 2020 13:57
Heroku deployment - M2

PROJECT2 DEPLOYMENT ON HEROKU

1. COMMIT AND PUSH YOUR LAST CHANGES

1.1. While on develop branch - Commit on develop

$ git add .
$ git commit -m 'Commit message'

1.2. Checkout to master

@caprosset
caprosset / README.md
Last active November 25, 2020 22:04
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.

@caprosset
caprosset / README.md
Created July 2, 2020 10:00
Proyecto M1 - Plantilla documentación

Project's name

Description

Brief description of the project

MVP (DOM - CANVAS)

MVP definition, deliverables and/or user stories

@caprosset
caprosset / movies.js
Created July 3, 2020 07:45
LAB solution - M1 | JavaScript Greatest Movies - WDFT ES 06/2020
// Iteration 1: All directors? - Get the array of all directors.
// _Bonus_: It seems some of the directors had directed multiple movies so they will pop up multiple times in the array of directors. How could you "clean" a bit this array and make it unified (without duplicates)?
function getAllDirectors(movies){
const directors = movies.filter(movie => movie.director).map(movie=>movie.director);
return [...new Set(directors)];
}
// Iteration 2: Steven Spielberg. The best? - How many drama movies did STEVEN SPIELBERG direct?
@caprosset
caprosset / index.html
Last active October 23, 2022 15:32
LAB solution - M1 | DOM Ironhack Cart
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="./css/style.css" />
<title>Ironhack Cart</title>
</head>
<body>
<h1>Ironhack Cart</h1>
@caprosset
caprosset / README.md
Last active November 1, 2023 12:30
Github Pages deployment - M1

M1 - Deployment (ES)

Actualizar el proyecto y guardar los últimos cambios

Antes de despliegar/subir nuestro proyecto, primero guardaremos los últimos cambios con un commit y subiremos estos cambios a GitHub (git push origin master o git push origin main dependiendo de cómo se llame la rama principal).