- Grunt - The JavaScript Task Runner
- Bower - A package manager for the web
- Component - Component package manager for building a better web.
- AngularJS - MVC Javascript framework
- Sencha, Dojo...
Kinohled.cz za 2 týdny Vojtěch Semecký
| node { | |
| wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm', 'defaultFg': 1, 'defaultBg': 2]) { | |
| wrap([$class: 'TimestamperBuildWrapper']) { | |
| ... steps... and other stuff | |
| } | |
| } | |
| } |
| <?php | |
| class AcceptanceTester extends \Codeception\Actor | |
| { | |
| use _generated\AcceptanceTesterActions; | |
| public function retryOnFailure(callable $callback, int $times = 3) | |
| { | |
| while ($times > 0) { | |
| try { | |
| $callback($this); |
| <?php | |
| class User | |
| { | |
| public function getThis() | |
| { | |
| return $this; | |
| } | |
| public function setThis($that) | |
| { |
| <?php | |
| class UserType extends \Symfony\Component\Form\AbstractType | |
| { | |
| public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options) | |
| { | |
| $builder->add('name', CompoundType::class, [ | |
| 'inherit_data' => true, | |
| ]); | |
| $builder->addEventListener(\Symfony\Component\Form\FormEvents::POST_SET_DATA, function (\Symfony\Component\Form\FormEvent $event) { |
| <?php | |
| class NameType extends \Symfony\Component\Form\AbstractType | |
| { | |
| public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options) | |
| { | |
| $builder->add('firstName', 'text'); | |
| $builder->add('lastName', 'text'); | |
| } | |
| } |
| $a = getAllCars(); | |
| foreach ($a as $a1) { | |
| $b1 = $a1; | |
| $b1['name'] = $a1['name'] . '_'; | |
| // ... about 100 lines later... | |
| if ($b1['name'] == $a1['name']) { | |
| save($a2); | |
| } else { |
| <?php | |
| interface Greeter | |
| { | |
| public function greet($name); | |
| } | |
| class ChainGreeter implements Greeter | |
| { | |
| private $greeters = []; | |
| #!/bin/sh | |
| if [ `id -u` -ne '0' ]; then | |
| echo "This script must be run as root" >&2 | |
| exit 1 | |
| fi | |
| drive=$1 | |
| volume_group=$2 | |
| volume_group_location=$3 |
| <?php | |
| namespace Example; | |
| class Example | |
| { | |
| public function doSomething() | |
| { | |
| eval('ls -la'); | |
| } | |
| } |
Kinohled.cz za 2 týdny Vojtěch Semecký