Skip to content

Instantly share code, notes, and snippets.

View abdeltiflouardi's full-sized avatar

Abdeltif LOUARDI abdeltiflouardi

View GitHub Profile
<?php
$list = array(1,2,2,2,2,3,3,1,1,1,1,1,2,2,1,2,3,1,2,1,1,3);
$line = 1;
$ordered = array();
foreach ($list as $item) {
if (isset($ordered[$line]) && (array_sum($ordered[$line]) + $item) > 3) {
$line++;
}
; Include Drupal Core and any core patches.
api = 2
core = 7.x
; Drupal Core
projects[drupal][type] = core
projects[drupal][version] = 7.50
<?php
namespace Plt\Bundle\UserBundle\Security\Core\User;
use HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface;
use HWI\Bundle\OAuthBundle\Security\Core\User\FOSUBUserProvider as BaseClass;
use Plt\Bundle\UserBundle\Entity\User;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Security\Core\User\UserInterface;
class FOSUBUserProvider extends BaseClass

Multiple PHP version under Ubuntu 14.04

Update your machine

apt-get update
apt-get upgrade

Install some dependencies

apt-get install build-essential

@abdeltiflouardi
abdeltiflouardi / membre.php
Created May 6, 2011 21:02 — forked from adahhane/membre.php
Class Membre
<?php
/*-------------------------------------------------
----------------Class : Membre --------------------
--------------------------------------------------*/
abstract class Membre {
private $id;
private $login;
private $firstName;
private $lastName;
private $dateOfBirth;