Skip to content

Instantly share code, notes, and snippets.

View anaelChardan's full-sized avatar
🍍
pineappling

nanou anaelChardan

🍍
pineappling
View GitHub Profile
#!/usr/bin/php
<?php
define('EXIT_WRONG_USAGE', 127);
define('EXIT_SERVICES_NEVER_USED', 1);
if (!file_exists('src/Kernel.php')) {
die("Please run this command from your Symfony application root.");
}
require 'app/bootstrap.php';
import java.lang.reflect.ParameterizedType
interface Command
interface CommandHandler<C: Command> {
fun invoke(command: C)
}
class CommandBus(val handlers: List<CommandHandler<out Command>>) {
@PublishedApi
internal val commandToCommandHandler: Map<String, CommandHandler<out Command>> =
// Your code here
// Your code here
function recupererNombreDeVoisins(generation, ligne, colonne) {
var nombreDeVoisinsPleins = 0;
var jeNeSuisPasLaPremiereLigne = ligne > 0;
var jeNeSuisPasLaPremiereColonne = colonne > 0;
var jeNeSuisPasLaDerniereLigne = generation.length - 1 > ligne;
var jeNeSuisPasLaDerniereColonne = generation[ligne].length - 1 > colonne;
@anaelChardan
anaelChardan / Test Json MailChimp
Last active February 18, 2016 14:03
Test Json MailChimp API v3
{
"name":"Country",
"type":"dropdown",
"options": {
"choices":["USA", "FR"]
}
}
AND here is the error : This resource has not yet implemented array assignment for options.choices.