Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| <div id="professional_address_address_widget"> | |
| <div id="professional_address_input"> | |
| <div id="professional_address"> | |
| <div> | |
| <label for="professional_address_address" class="required">Adresse</label> | |
| <input type="text" id="professional_address_address" name="professional[address][address]" required="required" maxlength="255" class="span8" value="19 Ruelle de Vitrimont, 54000 Nancy, France" /> | |
| </div> | |
| <input type="hidden" id="professional_address_zip_code" name="professional[address][zip_code]" required="required" value="54000" /> | |
| <input type="hidden" id="professional_address_location" name="professional[address][location]" required="required" value="Nanterre" /> | |
| <input type="hidden" id="professional_address_latitude" name="professional[address][latitude]" required="required" value="48.7059551" /> |
| #!/bin/bash | |
| mkdir -p bin sources/{config,twig,sql,lib/{Model,Controller}} web/{css,images,js} tests documentation log | |
| chmod 777 log | |
| > web/favicon.ico | |
| cat > bin/generate_model.php <<"EOF" | |
| <?php // bin/generate_model.php | |
| $app = require(__DIR__."/../sources/bootstrap.php"); |
| <?php | |
| class TimeoutException extends RuntimeException {} | |
| class Timeout | |
| { | |
| private $active; | |
| public function set($seconds) | |
| { |
| {# for twitter bootstrap specifically #} | |
| {% block field_row %} | |
| {% spaceless %} | |
| <div class="control-group {% if errors|length > 0 %}error{% endif %}"> | |
| {{ form_label(form, label|default(null)) }} | |
| <div class="controls"> | |
| {{ form_widget(form) }} | |
| {{ form_errors(form)}} | |
| </div> | |
| </div> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Responsive Design Testing</title> | |
| <style> | |
| body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
| .wrapper { width: 6000px; } | |
| .frame { float: left; } | |
| h2 { margin: 0 0 5px 0; } |
| STYLES = $(wildcard stylesheets/*.styl) | |
| CSS = $(STYLES:.styl=.css) | |
| COMPRESSED = $(CSS:.css=.min.css) | |
| all: $(CSS) | |
| style.min.css: $(COMPRESSED) | |
| @cat $^ > $@ |
| #!/bin/bash | |
| # A simple test script to demonstrate how to find the | |
| # "absolute path" at which a script is running. Used | |
| # to avoid some of the pitfals of using 'pwd' or hard- | |
| # coded paths when running scripts from cron or another | |
| # directory. | |
| # | |
| # Try it out: | |
| # run the script from the current directory, then |
| <?php | |
| use Symfony\Component\ResourceWatcher\ResourceWatcher, | |
| Symfony\Component\ResourceWatcher\Event\Event, | |
| Symfony\Component\Config\Resource\DirectoryResource, | |
| Symfony\Component\Config\Resource\FileResource; | |
| $watcher = new ResourceWatcher(); | |
| $watcher->track(new DirectoryResource('/some/directory'), function($event) { |
| <?php | |
| protected function _editAction(Post $post) | |
| { | |
| $em = $this->get('doctrine.orm.default_entity_manager'); | |
| $factory = $this->get('form.factory'); | |
| $form = $factory->create(new PostFormType()); | |
| $form->setData($post); | |
| if ($this->get('request')->getMethod() === 'POST') { |