- Choisissez un projet parmi ceux de l'organization
- Utilisez le template pour créer votre repo (Use this template -> New repository)
- Vous pouvez utiliser les technologies installées de base, ou celles de votre choix
- 200 g de lentilles vertes (en conserve si la flemme)
- 2 oignon rouge
- 1 gousse d’ail
- 3 carottes moyennes (environ 150 g)
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 React from "react"; | |
import { render, screen } from "@testing-library/react"; | |
import GasPrice from "./GasPrice"; | |
import { getGasPrice } from "./getGasPrice"; | |
jest.mock("./getGasPrice"); | |
test("renders a gas price message", () => { | |
getGasPrice.mockReturnValue(2); |
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
// @ts-check | |
// | |
// The line above enables type checking for this file. Various IDEs interpret | |
// the @ts-check directive. It will give you helpful autocompletion when | |
// implementing this exercise. | |
/** | |
* Calculates the total bird count. | |
* | |
* @param {number[]} birdsPerDay |
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
velib curl -s "https://velib-metropole-opendata.smoove.pro/opendata/Velib_Metropole/station_status.json" | jq '.data.stations' | grep "\"STATION-NUMBER\"" -B 1 -A 18 |
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
function getImages(string) { | |
const imgRex = /((http)?s?:?(\/\/[^"']*\.(?:png|jpg|jpeg|gif|png|svg)))/ig; | |
const images = []; | |
let img; | |
while ((img = imgRex.exec(string))) { | |
images.push(img[1]); | |
} | |
return images; | |
} | |
const {title, commitUrl} = inputData |
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
<div class="px-4 py-5 my-5 text-center"> | |
<h1 class="display-5 fw-bold">Maintenance en cours</h1> | |
<div class="col-lg-6 mx-auto"> | |
<p class="lead mb-4"> | |
Covidliste est en cours de maintenance planifiée, de 10h à 11h le lundi 5 avril. <br> | |
</p> | |
<div class="d-grid gap-2 d-sm-flex justify-content-sm-center"> | |
<a href="https://twitter.com/covidliste" class="btn btn-info btn-lg px-4 me-sm-3">Twitter @covidliste</a> | |
</div> |
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 file in *.png | |
do | |
convert -density 150 $file $file.png | |
done |
NewerOlder