View from_shp_to_geojson.py
This file contains 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
import geopandas as gdp | |
dep971 = gdp.read_file('./ZFU/ZFU_Dep971_Scan25_W84.shp') | |
dep972 = gdp.read_file('./ZFU/ZFU_Dep972_Scan25_W84.shp') | |
dep973 = gdp.read_file('./ZFU/ZFU_Dep973_Scan25_W84.shp') | |
dep974 = gdp.read_file('./ZFU/ZFU_Dep974_Scan25_W84.shp') | |
metropole = gdp.read_file('./ZFU/ZFU_FRM_Scan25_L93.shp') | |
# convert metropole to lon/lat system | |
dep971 = dep971.to_crs('EPSG:4326') |
View coordinates_transformer.py
This file contains 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
from pyproj import Transformer | |
# EPSG:2154 = Lambert 93 (french projection system) | |
# EPSG:4326 = WGS 84 (lon/lat) | |
class CoordinatesEncoder: | |
def convert(x: float, y: float): | |
transformer = Transformer.from_crs("EPSG:2154", "EPSG:4326", always_xy=True) |
View docker-compose.yml
This file contains 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
version: "2" | |
services: | |
plex: | |
image: linuxserver/plex:latest | |
container_name: plex | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- VERSION=docker | |
volumes: |
View better_correlation_maps.py
This file contains 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
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) |
View circuit.php
This file contains 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 | |
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()); |
View performance.html.twig
This file contains 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
{#** | |
* 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 |
View about
This file contains 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
➜ 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 | |
-------------------- ------------------------------------------- |
View docker-compose.yml
This file contains 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
version: "3" | |
services: | |
nginx: | |
image: nginx:1-alpine | |
env_file: .env | |
depends_on: | |
- php | |
- blackfire | |
ports: |
View .env
This file contains 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
BLACKFIRE_SERVER_ID=your-server-id-key | |
BLACKFIRE_SERVER_TOKEN=your-server-token |
View Dockerfile
This file contains 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
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 |
NewerOlder