Skip to content

Instantly share code, notes, and snippets.

<?php
namespace DesignPatterns\Creational\Prototype;
require_once '../../vendor/autoload.php';
$fooPrototype = new FooBookPrototype();
// now lets say we need 10,000 books of foo and 5,000 of bar ...
$maxObjects = 6000000;
<?php
namespace VisualCraft\Bundle\VioskFrontendBundle\DataFixtures;
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
use Doctrine\Common\DataFixtures\ReferenceRepository;
use Doctrine\Common\DataFixtures\SharedFixtureInterface;
use Hautelook\AliceBundle\Alice\DataFixtureLoader;
abstract class BaseDataFixtureLoader extends DataFixtureLoader implements OrderedFixtureInterface, SharedFixtureInterface
zend_extension=xdebug.so
xdebug.max_nesting_level=250
xdebug.var_display_max_depth=10
xdebug.remote_enable=true
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=127.0.0.1
xdebug.idekey=phpstorm-xdebug
xdebug.remote_autostart=1
<?php
namespace Harentius\SiteBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* Products
*
void QThermalConductivity::ev_solid_foil()
{
double l = thickness[2];
double kapa_s;
double H = thickness[3];
T_temp[N[1] - 1] = T[N[1] - 1] + 1.0/chcapacity[2]/ro[2]/H*(-2*kapa[1]*kapa[2]/(kapa[1]*H + kapa[2]*dx)*(T[N[1] - 1] - T[N[1] - 2]) +2/(H+l)*kapa_s*(T[N[1]] - T[N[1] - 1]))*dt;
bool t1 = (!flag && (f <= 0) && (T[N[1]] > T_evt) );
bool t2 = (!flag && (f >= 1) && (T[N[1]] < T_evt) );