Skip to content

Instantly share code, notes, and snippets.

View mickaelandrieu's full-sized avatar
🏠
Working from home

Mickaël Andrieu mickaelandrieu

🏠
Working from home
View GitHub Profile
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/ageron/handson-ml/master/datasets/housing/housing.csv')
corr = df.corr()
corr.style.background_gradient(cmap='RdBu', vmin = -1, vmax = 1)
@mickaelandrieu
mickaelandrieu / clink_prompt.lua
Created March 27, 2017 17:38
My config for cmder prompt

Les problèmes essentiels de jQuery

Cet article fait suite à la discussion entre Metal3d et Mathieu Robin.

Saluons d'abord l'article de metal3d, qui pose enfin des questions intéressantes après un article écrit trop tôt qui soulignait surtout les difficultés qu'il avait en découvrant jQuery et en essayant de l'utiliser comme Mootools (ce qui ne peut bien sûr pas fonctionner).

Cependant, on sent bien dans cet article que les problèmes fondamentaux commencent à être touchés sans toutefois être exactement saisis. Laissez-moi vous présenter mon point de vue.

La peur des natives

<?php
use Resiliency\MainCircuitBreaker;
use Resiliency\Systems\MainSystem;
use Resiliency\Storages\SimpleArray;
use Resiliency\Clients\SymfonyClient;
use Symfony\Component\HttpClient\HttpClient;
$client = new SymfonyClient(HttpClient::create());
{#**
* 2007-2019 PrestaShop and Contributors
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
➜ PrestaShop git:(1.7.6.x) php bin/console about
-------------------- -------------------------------------------
Symfony
-------------------- -------------------------------------------
Version 3.4.26
End of maintenance 11/2020
End of life 11/2021
-------------------- -------------------------------------------
Kernel
-------------------- -------------------------------------------
BLACKFIRE_SERVER_ID=your-server-id-key
BLACKFIRE_SERVER_TOKEN=your-server-token
version: "3"
services:
nginx:
image: nginx:1-alpine
env_file: .env
depends_on:
- php
- blackfire
ports:
FROM php:7.2-alpine
LABEL MAINTAINER="Mickaël Andrieu <mickael.andrieu@prestashop.com>"
RUN apk add --update libxslt-dev && \
docker-php-ext-install xsl
RUN curl -fsSL https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer
RUN composer global require 'edgedesign/phpqa' 'friendsofphp/php-cs-fixer' 'jakub-onderka/php-parallel-lint' 'phpstan/phpstan' 'vimeo/psalm' --no-progress --no-scripts --no-interaction
@mickaelandrieu
mickaelandrieu / AppBundle.php
Last active November 21, 2018 14:37
Enable an event subscriber dynamically (the right way)
<?php
namespace AppBundle;
use AppBundle\DependencyInjection\Compiler\SecureApplicationPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AppBundle extends Bundle