Skip to content

Instantly share code, notes, and snippets.

View mattrousseau's full-sized avatar

Matthieu Rousseau mattrousseau

View GitHub Profile
Suarna Barcelona Mediterranean
The Wee Box Cafe Edinburgh Cafe
Le Safran Paris French
Crackers Berlin European
Pear Tree Cafe London Cafe
McDonald's London Fast Food
Paneria Prague Fast Food
Ristorante Arco di S. Calisto Rome Italian
Hamburgaria a Gina Lisbon American
Mibi's International Cuisine Prague Japanese
import random
class Game():
HANDS = ("PIERRE", "FEUILLE", "CISEAUX")
def __init__(self, max_score=3):
self.max_score = max_score
self.player_score = 0
self.computer_score = 0
const authorization = "Bearer sk_9d181e5372e526fc69209f9e64dae0d0";
// 1. Select our form to get our input
const form = document.querySelector('#clearbitForm');
// store all other HTML elements (for enriched info)
const userName = document.querySelector('#userName');
const userEmail = document.querySelector('#userEmail');
const userBio = document.querySelector('#userBio');
const userLocation = document.querySelector('#userLocation');
const userInput = form.querySelector("#clearbitEmail");

Quiz correction - DB and ActiveRecord

Q1 - What’s a relational database?

ensemble de tables reliées par des clés primaires/étrangères

Q2 - What are the different “table relationships” you know?

  • 1:N One to many
  • N:N Many to many => table de jointure

Q3 - Consider this e-library service. An author, defined by his name have several books. A book, defined by its title and publishing year, has one author only. What’s this simple database scheme. Please draw it!

@mattrousseau
mattrousseau / db-quizz-320
Created October 29, 2019 16:57
db-quizz-320
# Quiz correction - DB and ActiveRecord
### Q1 - What’s a relational database?
ensemble de tables reliées par des clés primaires/étrangères
### Q2 - What are the different “table relationships” you know?
1:N One to many
N:N Many to many => table de jointure
### Q3 - Consider this e-library service. An author, defined by his name have several books. A book, defined by its title and publishing year, has one author only. What’s this simple database scheme. Please draw it!
@mattrousseau
mattrousseau / db-quizz-320
Created October 29, 2019 16:57
db-quizz-320
# Quiz correction - DB and ActiveRecord
### Q1 - What’s a relational database?
ensemble de tables reliées par des clés primaires/étrangères
### Q2 - What are the different “table relationships” you know?
1:N One to many
N:N Many to many => table de jointure
### Q3 - Consider this e-library service. An author, defined by his name have several books. A book, defined by its title and publishing year, has one author only. What’s this simple database scheme. Please draw it!
# Quiz correction - DB and ActiveRecord
### Q1 - What’s a relational database?
ensemble de tables reliées par des clés primaires/étrangères
### Q2 - What are the different “table relationships” you know?
1:N One to many
N:N Many to many => table de jointure
### Q3 - Consider this e-library service. An author, defined by his name have several books. A book, defined by its title and publishing year, has one author only. What’s this simple database scheme. Please draw it!