Skip to content

Instantly share code, notes, and snippets.

View axelmarciano's full-sized avatar

Axel Marciano axelmarciano

View GitHub Profile
@axelmarciano
axelmarciano / sass
Created June 15, 2021 16:56
Sass bar
@for $i from 1 through $num-bars {
& > &__bar:nth-child(#{$i}) {
animation-delay: $anim-delay * $i;
}
}
// 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" },
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);
const I = {
shape: [
[0, 0, 0, 0],
[0, 0, 0, 0],
[1, 1, 1, 1],
[0, 0, 0, 0]
],
color: "rgb(102, 253, 253)"
};
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() {
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
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:
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:
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" },
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`,