This file contains hidden or 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
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: | |
name: smurfs.stable.example.com | |
spec: | |
group: stable.example.com | |
versions: | |
- name: v1 | |
served: true | |
storage: true |
This file contains hidden or 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
--- | |
apiVersion: stable.example.com/v1 | |
kind: Smurf | |
metadata: | |
name: papasmurf | |
spec: | |
smurfName: "Papa Smurf" | |
smurfRole: "Papa Smurf is the leader and elder of the Smurfs." | |
smurfCount: 1 | |
... |
This file contains hidden or 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
<?php | |
$config = json_decode(file_get_contents(dirname(__FILE__) . "/install.json"), true); | |
if (!is_array($config)) { | |
die("[ERROR] Cannot parse JSON file at [". dirname(__FILE__) . "/install.json" ."]\n"); | |
} | |
define('PIWIK_DOCUMENT_ROOT', $config['document_root']); | |
if (file_exists(PIWIK_DOCUMENT_ROOT . '/bootstrap.php')) { | |
require_once PIWIK_DOCUMENT_ROOT . '/bootstrap.php'; | |
} | |
if (!defined('PIWIK_INCLUDE_PATH')) { |
This file contains hidden or 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
/* Supprimer une fonction */ | |
DROP FUNCTION nombre_cartons_jaunes (character varying, character varying); | |
/*a AJOUTER UNE PERSONNE */ | |
CREATE OR REPLACE function ajout_personne (nom varchar, prenom varchar, date_naissance date, nat int) returns void as $$ | |
declare | |
vid int = (select max(id_personne) from personne); | |
begin |
This file contains hidden or 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
var score_inital = 1390; | |
var calculeScore = function (nbWin, nbKills) { | |
return nbWin * 10 + nbKills; | |
} | |
document.getElementById('btn').addEventListener('click', function (e) { | |
e.preventDefault(); | |
var nickname = document.getElementById('nickname').value; | |
if (nickname) { | |
var url = "https://fortnite.y3n.co/v2/player/" + nickname; |
This file contains hidden or 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
class Plateau { | |
private Ligne[] tabLignes; | |
private int nbColonne; | |
public Plateau() { | |
// This fait référence à l'objet lui-même et initialise les 2 attributs avec les paramètres | |
this(7,6); | |
} | |
public Plateau(int nbColonne, int nbLigne) { |
This file contains hidden or 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
class Personne { | |
private String nom; | |
private String prenom; | |
private int annee; | |
private int mois; | |
// Création des constructeurs | |
public Personne(){ | |
this.nom = "Doe"; | |
this.prenom = "John"; |
This file contains hidden or 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
// gitFinder | |
// Permet d'afficher le profil d'un user gitHub grâce à l'API | |
var userElt = document.getElementById('presentation'); | |
var button = document.getElementById('searchbtn'); | |
// Button Click | |
button.addEventListener('click', function () { | |
// Formate l'URL selon ce qui a été rentré par l'utilisateur | |
var gitName = document.getElementById('gitName').value; |
This file contains hidden or 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
// J'ai dû utilisé la bibliothèque qrcode.js | |
// Tu la trouveras facilement sur internet, il suffit juste d'ajouter une ligne <script src=qrcode.js> </script> | |
var button = document.getElementById('button') | |
button.addEventListener('click', function () { | |
var id = $.now() - 1489270000000; | |
var cl = document.getElementById('cl').value; | |
if (cl === "") { | |
cl = 50; | |
} |
This file contains hidden or 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
var decode = function (phrase, base){ | |
// On met en binaire si il n'y a pas eu de base spécifiée | |
if (base === undefined){ | |
base = 2; | |
} | |
var phraseEncodee = phrase.split (" "); | |
var phraseFinale; |
NewerOlder