Skip to content

Instantly share code, notes, and snippets.

View lucascolette's full-sized avatar

Lucas Colette lucascolette

View GitHub Profile
<table class="table" cellpadding="0" cellspacing="0" border="0">
<thead>
<tr>
<th>PRODUTO</th>
<th>QTD.</th>
<th>PREÇO</th>
</tr>
</thead>
<tbody>
@foreach ($cart->items as $item)
<style>
/* Base */
body, body *:not(html):not(style):not(br):not(tr):not(code) {
font-family: Roboto, 'Helvetica Neue', Helvetica, sans-serif;
box-sizing: border-box;
}
body {
<?php
'App\Events\FooEvent' => [
'App\Listeners\FooListener',
],
@lucascolette
lucascolette / CpfRule.php
Created February 24, 2018 19:00
CpfRule.php
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
use Respect\Validation\Validator as v;
class Cpf implements Rule
{
/**
@lucascolette
lucascolette / Update remote repo
Created January 15, 2018 16:51 — forked from mandiwise/Update remote repo
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@lucascolette
lucascolette / questions.html
Created December 19, 2013 22:34
Questions HTML
<div class="row-fluid clearfix">
<div class="span12">
<div class="title-container clearfix">
<h1 class="pull-left">Dúvidas</h1>
</div>
<!-- /title-container -->
<hr>
@lucascolette
lucascolette / questions.css
Created December 19, 2013 22:33
Questions Sina
.steps {
margin: 30px 0 0 0;
}
.step-question {
height: 310px;
}
.step-question.step-1 {
width: 460px;
<?php
// Cria os filtros
$filters = array();
foreach ( $products as $product ) {
$options = array();
// Primeiro resgata os filtros pai
foreach ( $product->filters as $filterOption ) {
<?php
public function prepareServicesForSave( $services ) {
$availableServices = $this->all()->toArray();
$preparedServices = array();
foreach( $services as $service => $value )
{
// If checkbox is selected
if( $value == '1' )
{
// If permission exists
// Estilo da lista
.box-book {
width: 195px;
height: 430px;
padding: 10px;
float: left;
position: relative;
margin: 0 30px 30px 0;