Skip to content

Instantly share code, notes, and snippets.

@alyson-b69
alyson-b69 / BonbonxMax
Last active May 21, 2020 08:07
BonbonsMax
Début CalculBonbonsMax (réel argent, réel prix)
CompteurBonbons <- 0
Si argent>0 et prix>0
Tant que argent >= prix
argent <- argent - prix
CompteurBonbons = CompteurBonbons + 1
Retourner CompteurBonbons
Sinon
retourner "Erreur, vos valeurs sont incorrectes"
Fin si
https://blog.nathanaelcherrier.com/fr/corriger-problemes-chargement-google-adsence-react/
On va aborder React à un moment de notre Wild parcours. Etcomme chaque langage, ce dernier n'est pas infaillible.
React optimise ses modifications du DOM pour ne mettre à jour que les infos nécessaires.
Mais cela pose problème dans le cas de Google AdSense.
Coup de mou pour la pub...
Du coup, on nous explique ici comment corriger ce problème et garder les précieuses publicités de nos futurs clients (ou les nôtres d'ailleurs).
https://delicious-insights.com/fr/articles/js-nuggets/
On avait dit 1 lien vers notre language, mais quand on découvre une mine de pépites, c'est sympa de partager non ?
delicious-insights nous liste ici 19 astuces, meilleures pratiques, capacités méconnues, démontages d'idées reçues, démystifications…
Last login: Mon May 25 15:47:58 on ttys001
You have new mail.
alysonbernabeu@Air-de-Alyson ~ % ls
Applications Music
Creative Cloud Files Pictures
Desktop Public
Documents artchoum
Downloads category-anniversaires.php
Library français.png
Mes documents langues.png
➜ shell curl -L -o planets.zip https://github.com/WildCodeSchool/quests-resources/blob/master/terminal/planets.zip\?raw\=true
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 148 100 148 0 0 477 0 --:--:-- --:--:-- --:--:-- 477
100 159 100 159 0 0 305 0 --:--:-- --:--:-- --:--:-- 305
100 293k 100 293k 0 0 261k 0 0:00:01 0:00:01 --:--:-- 536k
➜ shell unzip planets.zip
Archive: planets.zip
@alyson-b69
alyson-b69 / Decouverte nodeJS
Last active June 22, 2020 06:29
Decouverte nodeJS
process.stdin.resume()
process.stdin.setEncoding('utf8')
// console.log('What\'s your name ? ')
// process.stdin.on('data', (text) => {
// console.log('Hello ' + text)
// process.exit()
// });
npm install -g cowsay
let cowsay = require("cowsay");
console.log(cowsay.say({
text : "hello boy",
}));
(function () {
let dataClinics = [
{
id: 1,
clinic: 'The Smiling House',
img_clinique:'https://www.lasource.ch/sites/default/files/styles/crop_3_2/public/images/content_types/page/specialites.jpg?itok=1eShRFbt',
city: 'Bucarest',
country: 'Romania',
price:[823,256],
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
<header>
### GET wilders with the API
GET https://http-practice.herokuapp.com/wilders
### GET wilders on JavaScript with the API
GET https://http-practice.herokuapp.com/wilders?language=JavaScript
### GET wilders on JavaScript with the API & a big number
GET https://http-practice.herokuapp.com/wilders?language=JavaScript&page=100000
mysql> SELECT * FROM wizard WHERE birthday BETWEEN '1975-01-01' AND '1985-01-01';
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+
| id | firstname | lastname | birthday | birth_place | biography | is_muggle |
+----+-----------+----------+------------+-------------+---------------------------------------+-----------+
| 14 | harry | potter | 1980-07-31 | london | | 0 |
| 15 | hermione | granger | 1979-09-19 | | Friend of Harry Potter | 0 |
| 17 | ron | weasley | 1980-03-01 | | Best friend of Harry | 0 |
| 18 | ginny | weasley | 1981-08-11 | | Sister of Ron and girlfriend of Harry | 0 |
| 19 | fred | weasley | 1978-04-01 | | | 0 |
| 20 | george | weasley | 1978-04-01 | |