- Full screen browser
class ClassTest extends \PHPUnit_Extensions_Selenium2TestCase
{
public static $browsers = array(
array(
package main | |
import ( | |
"github.com/lazybeaver/xorshift" | |
"log" | |
"os" | |
"strconv" | |
"time" | |
) |
<?php | |
namespace AppBundle\Service; | |
use Cocur\Slugify\Slugify; | |
class UniqueFileNameGeneratorService | |
{ | |
private $slugify; | |
private $original_filename; |
boot2docker ssh 'sudo sh -c "echo "EXTRA_ARGS=\"--insecure-registry 192.168.0.0/16\"" > /var/lib/boot2docker/profile && sudo /etc/init.d/docker restart"'
docker-compose up --allow-insecure-ssl -d
/** | |
* @Route("/upload_image_wysiwyg", name="upload_image_wysiwyg", options={"expose"=true}) | |
*/ | |
public function uploadImageWYSIWYGAction(Request $request) | |
{ | |
$user = $this->getLoggedUser(); | |
if(!$user) | |
{ | |
return new JsonResponse(array('success'=>false,"error"=>"bad request")); |
Create React component using:
$dispatcher = $this->get('hip_mandrill.dispatcher'); | |
$message = new Message(); | |
$message | |
->setFromEmail('[email protected]') | |
->setFromName('Customer Care') | |
->addTo('[email protected]') | |
->setSubject('Some Subject') |
var gulp = require('gulp'), | |
compass = require('gulp-compass'), | |
jade = require('gulp-jade'), | |
watch = require('gulp-watch'); | |
var integration_folder = 'web/integration/'; | |
var assets_folder = integration_folder+'assets/'; | |
function error(message) { | |
console.log("Error : "+message.toString()); |
<?php | |
function get_posts_by_lang($args = array(), $lang = "fr") { | |
global $wpdb; | |
$post_table = $wpdb->posts; | |
$translation_table = $wpdb->prefix . 'icl_translations'; | |
$sql = " | |
SELECT ID |