php -S localhost:8000
You directory is accessible on: http://localhost:8000
In ~/.bashrc
add:
<?php | |
namespace Lazy; | |
class Pocky | |
{ | |
private function __construct() | |
{ | |
dump("Lazy Pocky"); | |
} |
php -S localhost:8000
You directory is accessible on: http://localhost:8000
In ~/.bashrc
add:
function Car (color) | |
{ | |
this.color = color; | |
} | |
// Fonction anonyme? | |
Car.prototype.getColor = function() | |
{ | |
return this.color; | |
}; |
<?php | |
namespace EventBundle\Utils; | |
/** | |
* Inventory | |
*/ | |
class Inventory | |
{ | |
/** |
.table { | |
.sorted { | |
.asc:before, | |
.desc:before { | |
content: ""; | |
margin-right: 5px; | |
.caret(); | |
} | |
.asc:before { | |
border-top: 0; |
<?php | |
namespace Acme\DemoBundle\Twig; | |
use Symfony\Component\PropertyAccess\PropertyAccess; | |
use Doctrine\Common\Inflector\Inflector; | |
class ChoiceExtension extends \Twig_Extension | |
{ | |
/** |
.table-behaviors { | |
display: table /* <table> */ | |
display: table-cell /* <td> */ | |
display: table-row /* <tr> */ | |
display: table-column /* <col> */ | |
display: table-column-group /* <colgroup> */ | |
display: table-footer-group /* <tfoot> */ | |
display: table-header-group /* <thead> */ | |
} |
var a = parseFloat(""); | |
alert(typeof(a)); // "Number"; | |
alert(a); // "NaN" a.k.a. Not a Number; |
function Queriable (form, subset, queryKey, callback, labels) | |
{ | |
if (form.length === 1 && subset.length === 1) { | |
this.labels = typeof(labels) != "undefined" ? labels : {}; | |
this.statement = []; | |
this.form = form; | |
this.subset = subset; |
{# template.html.twig #} | |
<h1>Mon grand titre </h1> | |
{% embed "user.html.twig" %} | |
{% block titre %} | |
<h2>Mon titre</h2> | |
{% endblock %} | |
{% block bottom %} |