Skip to content

Instantly share code, notes, and snippets.

pedro felipe avelino da silva lira fellypeavelino

Block or report user

Report or block fellypeavelino

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Cli_Config_Doctrine_ORM_for_Zend_Framework_3.txt
<?php
//Insert in config folder as file name cli-config.php
require_once "vendor/autoload.php";
// bootstrap.php
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Tools\Console\ConsoleRunner;
@fellypeavelino
fellypeavelino / macros.twig
Created Jul 3, 2016 — forked from goreilly/macros.twig
Twig HTML Select Macro with optgroups
View macros.twig
{% macro select (name, id, options, selected, required, includeBlank) %}
<select name="{{ name }}" id="{{ id }}" {{ required ? 'required' : '' }}>
{% if includeBlank %}
<option value=""></option>
{% endif %}
{% for key, value in options %}
{% if value is iterable %}
<optgroup label="{{ key }}">
{% for subKey, subValue in value %}
<option value="{{ subKey }}" {{ subKey == selected ? 'selected' : '' }}>{{ subValue }}</option>
@fellypeavelino
fellypeavelino / glyphicons.css
Created May 21, 2016 — forked from planetoftheweb/glyphicons.css
Bootstrap 4 code for including your own glyphicons
View glyphicons.css
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
You can’t perform that action at this time.