Skip to content

Instantly share code, notes, and snippets.

View gpassarelli's full-sized avatar

Gabriel Passarelli gpassarelli

View GitHub Profile
@gpassarelli
gpassarelli / assinatura.html
Created February 6, 2018 20:34
Assinatura DMI
<div>Estou a disposição, caso tenha alguma dúvida.</div><div> </div> <br/> Grande abraço.<br/> </div><div> Bruno | Descubra o Mundo Intercâmbio<br/> <br/> </div><div> </div>
<p style="font-family: Arial, Arial Black, Tahoma, Trebuchet MS, Verdana, sans-serif; font-size: 12px; color: #aaa; text-decoration: none;">
<a href="https://br.trustpilot.com/review/descubraomundo.com?utm_medium=Trustbox&utm_source=EmailSignature2" target="_blank">
<img src="https://emailsignature.trustpilot.com/signature/pt-BR/2/552bd8fe0000ff00057ebb3c/text.png" border="0" height="16" style="max-height: 16px;" alt="Trustpilot rating"><br>
<img src="https://emailsignature.trustpilot.com/signature/pt-BR/2/552bd8fe0000ff00057ebb3c/stars.png" border="0" width="160" style="max-width: 160px; width: 100%;" alt="Trustpilot Stars"></a>
<br><span style="font-family: Arial, Arial Black, Tahoma, Trebuchet MS, Verdana, sans-serif; font-size: 12px; color: #aaa;">powered by</span>
<a href="https://br.trustpilot.com/review/descubraomundo.com?utm_
@gpassarelli
gpassarelli / assinatura.html
Created February 6, 2018 20:34
Assinatura DMI
<div>Estou a disposição, caso tenha alguma dúvida.</div><div> </div> <br/> Grande abraço.<br/> </div><div> Bruno | Descubra o Mundo Intercâmbio<br/> <br/> </div><div> </div>
<p style="font-family: Arial, Arial Black, Tahoma, Trebuchet MS, Verdana, sans-serif; font-size: 12px; color: #aaa; text-decoration: none;">
<a href="https://br.trustpilot.com/review/descubraomundo.com?utm_medium=Trustbox&utm_source=EmailSignature2" target="_blank">
<img src="https://emailsignature.trustpilot.com/signature/pt-BR/2/552bd8fe0000ff00057ebb3c/text.png" border="0" height="16" style="max-height: 16px;" alt="Trustpilot rating"><br>
<img src="https://emailsignature.trustpilot.com/signature/pt-BR/2/552bd8fe0000ff00057ebb3c/stars.png" border="0" width="160" style="max-width: 160px; width: 100%;" alt="Trustpilot Stars"></a>
<br><span style="font-family: Arial, Arial Black, Tahoma, Trebuchet MS, Verdana, sans-serif; font-size: 12px; color: #aaa;">powered by</span>
<a href="https://br.trustpilot.com/review/descubraomundo.com?utm_
@gpassarelli
gpassarelli / bootstrap_grid.css
Created January 19, 2018 14:46
Twitter Bootstrap GRID Only
.container,.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@-ms-viewport{width:device-width}.visible-lg,.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}.visible-xs-block{display:block!important}.visible-xs-inline{display:inline!important}.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}.visible-sm-block{display
@gpassarelli
gpassarelli / wl_dmi.html
Last active December 1, 2017 14:54
Best practices for DMI WL
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>White Label DMI</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Minimal CSS to make DMI White Label looks nice on desktop websites. We strongly reccomend to have a full width page for the WL -->
<style>
@gpassarelli
gpassarelli / phpstrom_keyboard.sh
Created March 17, 2016 09:50
PHPStorm Keyboard Stoped working
sudo ibus restart
@gpassarelli
gpassarelli / vagrant_fix.sh
Created March 17, 2016 09:49
Vagrant up won't work
sudo /usr/lib/virtualbox/vboxdrv.sh setup
@gpassarelli
gpassarelli / mautic_spool.sh
Created November 26, 2015 12:02
Mautic Spool Size
find app/spool/default -type f | wc -l
<?php
/*
* This file is part of ThraceDataGridBundle
*
* (c) Nikolay Georgiev <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Thrace\DataGridBundle\Doctrine\ORM;
@gpassarelli
gpassarelli / load_extensions
Created September 28, 2015 19:41
Load Doctrine Extensios
Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
@gpassarelli
gpassarelli / class.php
Last active September 28, 2015 16:35
Doctrine Fill Class Attributes
/**
* Assign entity properties using an array
*
* @param array $attributes assoc array of values to assign
* @return null
*/
public function fromArray(array $attributes)
{
foreach ($attributes as $name => $value) {
if (property_exists($this, $name)) {