This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@for $i from 1 through $num-bars { | |
& > &__bar:nth-child(#{$i}) { | |
animation-delay: $anim-delay * $i; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Rendez-vous à valider | |
const bookings = [ | |
{ "id": 0, "day": 6, "start": "14:22", "end": "15:05" }, | |
{ "id": 1, "day": 4, "start": "12:43", "end": "13:34" }, | |
{ "id": 2, "day": 1, "start": "10:46", "end": "11:31" }, | |
{ "id": 3, "day": 2, "start": "14:36", "end": "17:48" }, | |
{ "id": 4, "day": 1, "start": "09:55", "end": "13:10" }, | |
{ "id": 5, "day": 5, "start": "11:20", "end": "14:37" }, | |
{ "id": 6, "day": 5, "start": "12:58", "end": "13:50" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Tetriminos { | |
constructor(tetriminos = {}) { | |
const { shape, color } = tetriminos; | |
if (shape && color) { | |
this.shape = shape; | |
this.color = color; | |
} else { | |
// Dans le cas où on initialise pas la classe tétriminos à une valeur prédéfinie, il s'initialise aléatoirement | |
const tetriminosArray = [I, O, J, Z, S]; | |
const pickTetriminos = random_item(tetriminosArray); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const I = { | |
shape: [ | |
[0, 0, 0, 0], | |
[0, 0, 0, 0], | |
[1, 1, 1, 1], | |
[0, 0, 0, 0] | |
], | |
color: "rgb(102, 253, 253)" | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ChampDeJeu { | |
constructor({ width = 0, height = 0 }) { | |
// La taille est un object avec les propriétés width et height | |
this.size = { | |
width, | |
height | |
}; | |
this.matrix = generateMatrix(height, width); | |
} | |
print() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
api: | |
container_name: api | |
build: . # Localisation du Dockerfile dans notre cas dans le dossier racine | |
ports: | |
- 8800:8800 # Nous exposons le port 8800 | |
volumes: | |
- ./:/usr/src/app # Le volume du WORKDIR | |
- /usr/src/app/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
api: | |
container_name: api | |
build: . # Localisation du Dockerfile dans notre cas dans le dossier racine | |
ports: | |
- 8800:8800 # Nous exposons le port 8800 | |
volumes: | |
- ./:/usr/src/app # Le volume du WORKDIR | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
api: | |
container_name: api | |
build: . # Localisation du Dockerfile dans notre cas dans le dossier racine | |
ports: | |
- 8800:8800 # Nous exposons le port 8800 | |
volumes: | |
- ./:/usr/src/app # Le volume du WORKDIR | |
- /usr/src/app/node_modules | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const bookings = [ | |
{ "id": 0, "day": 6, "start": "14:22", "end": "15:05" }, | |
{ "id": 1, "day": 4, "start": "12:43", "end": "13:34" }, | |
{ "id": 2, "day": 1, "start": "10:46", "end": "11:31" }, | |
{ "id": 3, "day": 2, "start": "14:36", "end": "17:48" }, | |
{ "id": 4, "day": 1, "start": "09:55", "end": "13:10" }, | |
{ "id": 5, "day": 5, "start": "11:20", "end": "14:37" }, | |
{ "id": 6, "day": 5, "start": "12:58", "end": "13:50" }, | |
{ "id": 7, "day": 0, "start": "10:01", "end": "11:10" }, | |
{ "id": 8, "day": 4, "start": "09:33", "end": "10:25" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from "axios"; | |
const headers = { | |
"Content-Type": "application/json" | |
}; | |
const burl = "http://localhost:8800"; | |
export default { | |
login: function(email, password) { | |
return axios.post( | |
`${burl}/user/login`, |
NewerOlder