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
window.onload = function() { | |
var form = document.getElementById('form'), | |
placeholderTestElm = document.createElement('input'), | |
isSupported = !(undefined === placeholderTestElm.placeholder); | |
if (!isSupported) { | |
this.initPlaceholder(); | |
form.onsubmit = function(e) { | |
alert('After this point all inputs without values and with placeholder should be clear.'); |
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 | |
namespace FSi\Bundle\DemoBundle\Doctrine\DBAL\Types; | |
use Doctrine\DBAL\Types\VarDateTimeType; | |
use Doctrine\DBAL\Types\Type; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
class Datetime2Type extends VarDateTimeType | |
{ |
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 | |
namespace FSi\Bundle\DemoBundle\Behat\Page\Element; | |
use SensioLabs\Behat\PageObjectExtension\PageObject\Element; | |
use SensioLabs\Behat\PageObjectExtension\PageObject\Exception\UnexpectedPageException; | |
/** | |
* @author Norbert Orzechowicz <norbert@fsi.pl> | |
*/ |
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 | |
namespace Acme\DemoBundle\DependencyInjection; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
use Symfony\Component\Config\FileLocator; | |
class AcmeDemoExtension extends Extension |
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
git submodule add http://github.com/example42/puppet-apache vagrant/modules/apache | |
git submodule add http://github.com/puppetlabs/puppetlabs-java vagrant/modules/java | |
git submodule add https://github.com/puppetlabs/puppetlabs-apt.git vagrant/modules/apt | |
git submodule add https://github.com/vagrantee/puppet-composer.git vagrant/modules/composer | |
git submodule add https://github.com/puppetlabs/puppetlabs-mysql.git vagrant/modules/mysql | |
git submodule add https://github.com/example42/puppet-php.git vagrant/modules/php | |
git submodule add https://github.com/puphpet/puppet-puphpet.git vagrant/modules/puphpet | |
git submodule add https://github.com/example42/puppi.git vagrant/modules/puppi | |
git submodule add https://github.com/puppetlabs/puppetlabs-stdlib.git vagrant/modules/stdlib | |
git submodule add https://github.com/puphpet/puphpet-xdebug.git vagrant/modules/xdebug |
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
language: php | |
php: | |
- 5.3 | |
- 5.4 | |
- 5.5 | |
before_install: | |
- sudo apt-get update > /dev/null |
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
$object = new \Object(); | |
$object->name = 'norbert'; | |
$object->surname = 'orzechowicz'; | |
$object->email = 'norbert@orzechowicz.pl'; | |
$objectPreview($object); | |
$objectPreview->addField('name', array('propertyPath' => 'name', 'label' => 'User Name')); | |
$objectPreview->addField('surname', array('propertyPath' => 'surname', 'label' => 'User Surname')); | |
$objectPreview->addField('email', array('propertyPath' => 'email', 'label' => 'Email')); |
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 | |
namespace FSi\Bundle\AdminBundle\Behat\Context; | |
use Behat\Behat\Context\BehatContext; | |
use Behat\Behat\Event\ScenarioEvent; | |
class FeatureContext extends BehatContext | |
{ | |
/** |
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 | |
$users = mysql_query(<<<EOT | |
SELECT `users`.`id` | |
FROM `users` | |
WHERE `users`.`regkey` = '' | |
ORDER BY `users`.`id` DESC | |
LIMIT 1 | |
<<EOT); |
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
- name: Install Mysql package | |
apt: name={{ item }} state=installed | |
with_items: | |
- mysql-server | |
- python-mysqldb | |
- python-selinux |
OlderNewer