- assume your code doesn't use any deprecated from versions below Symfony 2.3
- update dependencies from 2.3 to 2.7
- do not support "deprecated", be "Symfony3-ready"
- list tasks component by component, bundle by bundle.
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 json | |
def tableau_vers_json(tableau): | |
""" | |
Convertit un tableau (liste de listes) en JSON. | |
:param tableau: Liste de listes à convertir | |
:return: Chaîne JSON | |
""" | |
try: |
First of all, ensure you don't have any deprecated!
The Symfony documentation explains it well, but let's sum up:
- install the phpunit bridge (
$ composer require --dev symfony/phpunit-bridge
) - also check all your pages using web profiler and be ensure there is no
deprecation error
handled - found errors and need help about how to fix it ? I did a sort of guide.
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
[Prénom et nom] | |
[Votre adresse] | |
[Code postal, Ville] | |
[Téléphone] | |
[Adresse e-mail] | |
[Date] | |
[Prénom et nom du député] | |
[Adresse du bureau du député] | |
[Code postal, Ville du bureau du député] |
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
#!/bin/bash | |
# `` sudo sh install.sh `` | |
# Developement environnement | |
# Important: use 'i686' instead of 'x86_64' | |
# | |
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724 | |
echo Installation de Phantomjs | |
cd /usr/local/share | |
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 |
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
var links = []; | |
var quotes = []; | |
var tempUrl = []; | |
var infos = []; | |
var maxLinks = 10; | |
var firstUrl = 'http://www.imdb.com/search/title?at=0&num_votes=5000,&sort=user_rating,desc&start=1&title_type=tv_infoss'; | |
var newUrl; | |
var x = require('casper').selectXPath; |
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 App\Kernel; | |
use Symfony\Component\Debug\Debug; | |
use Symfony\Component\Dotenv\Dotenv; | |
use Symfony\Component\HttpFoundation\Request; | |
require __DIR__.'/../vendor/autoload.php'; | |
// The check is to ensure we don't use .env in production |
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') |
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) |
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: |
NewerOlder