Skip to content

Instantly share code, notes, and snippets.

View nfroidure's full-sized avatar
🌻
Getting greener

Nicolas Froidure nfroidure

🌻
Getting greener
View GitHub Profile
// Programme qui compte jusque l'infini
// Par Thomas et Nicolas Froidure Stiernon
const depart = Date.now();
let compteur = 0;
while(true) {
if(Math.floor(Math.log10(compteur + 1)) > Math.floor(Math.log10(compteur))) {
console.log(compteur + 1, Math.round((Date.now() - depart) / 60000));
}
@nfroidure
nfroidure / README.md
Last active February 8, 2022 14:23
API docs with CORS

Usage

To use this with any API, just clone the Gist and run the following:

NGINX_API_URL=https://api.example.com API_PATH=/v0/openAPI docker-compose up

Finally browse to : http://docs.localhost:16640.