This file contains hidden or 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
{% macro collection_item(form) %} | |
<div data-form-collection-target="field"> | |
{{ form_widget(form) }} | |
<button type="button" | |
data-action="form-collection#removeItem"> | |
remove | |
</button> | |
</div> | |
{% endmacro %} |
This file contains hidden or 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
# best practice: linux | |
nano ~/.pgpass | |
*:5432:*:username:password | |
chmod 0600 ~/.pgpass | |
# best practice: windows | |
edit %APPDATA%\postgresql\pgpass.conf | |
*:5432:*:username:password | |
# linux |
This file contains hidden or 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
# If you don't remember the exact path/name, search the log for deleted files | |
git log --diff-filter=D --summary | grep delete | |
# Find the file you want to get from the ouput, and use the path | |
# Find the commits that involved that path | |
git log --all -- some/path/to/deleted.file | |
# Bring the file back to life to the current repo (sha commit of parent of commit that deleted) | |
git checkout shaofthecommitthatdeletedthefile^ -- some/path/to/deleted.file |
This file contains hidden or 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
<style> | |
.thumbnail.with-caption { | |
display: inline-block; | |
background: #f5f5f5; | |
} | |
.thumbnail.with-caption p { | |
margin: 0; | |
padding-top: 0.5em; | |
} | |
.thumbnail.with-caption small:before { |
This file contains hidden or 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
labelTypeName | labelSheetWidth | labelSheetHeight | topMargin | bottomMargin | leftMargin | rightMargin | numberOfRows | numberOfColumns | horizontalGutter | verticalGutter | |
---|---|---|---|---|---|---|---|---|---|---|---|
Avery 2160 Bottom | 8.5 | 11 | 5.5 | 0.5 | 0.81 | 0.81 | 4 | 1 | 0 | 0 | |
Avery 2160 Top | 8.5 | 11 | 0.5 | 5.5 | 0.81 | 0.81 | 4 | 1 | 0 | 0 | |
Avery 2162 Bottom | 8.5 | 11 | 5.5 | 0.5 | 0.125 | 0.125 | 3 | 1 | 0 | 0 | |
Avery 2162 Top | 8.5 | 11 | 0.5 | 5.5 | 0.125 | 0.125 | 3 | 1 | 0 | 0 | |
Avery 2163 Bottom | 8.5 | 11 | 5.5 | 0.5 | 0.125 | 0.125 | 2 | 1 | 0 | 0 | |
Avery 2163 Top | 8.5 | 11 | 0.5 | 5.5 | 0.125 | 0.125 | 2 | 1 | 0 | 0 | |
Avery 2164 Bottom | 8.5 | 11 | 5.844 | 0.844 | 0.125 | 0.125 | 1 | 1 | 0 | 0 | |
Avery 2164 Top | 8.5 | 11 | 0.844 | 5.844 | 0.125 | 0.125 | 1 | 1 | 0 | 0 | |
Avery 5159 | 8.5 | 11 | 0.25 | 0.25 | 0.156 | 0.156 | 7 | 2 | 0.188 | 0 |
This file contains hidden or 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 | |
class Builder extends ContainerAware | |
{ | |
public function adminMenu(FactoryInterface $factory, array $options) | |
{ | |
$menu = $factory->createItem('root'); | |
$menu->setChildrenAttribute('class', 'nav'); //esto es el tema | |
$menu->setCurrentUri($this->container->get('request')->getRequestUri()); | |
... |