Skip to content

Instantly share code, notes, and snippets.

View aguimaraes's full-sized avatar

Alvaro Guimaraes aguimaraes

  • Modern Milkman LLC
  • Boston, MA, USA
  • 20:33 (UTC -04:00)
View GitHub Profile
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\Models\Quotation;
use App\Observers\QuotationObserver;
class ObserverServiceProvider extends ServiceProvider
{
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName magento.local
Home Page
- Barra cinza do topo com links e telefones
- Header
- Busca com autocomplete
- Botão minha conta
- Resumo do carrinho num botão que leva pro carrinho.
- Menu esquerdo
- Carrossel de banners de produtos
- 2 banners horizontais
- Carrossel de produtos mais vendidos
alias migrate="php artisan migrate"
alias migrate-seed="php artisan migrate --seed"
alias seed="php artisan db:seed"
alias rollback="php artisan migrate:rollback"
alias commit="git commit -m"
alias push="git push"
alias pull="git pull"
alias add="git add"
alias status="git status"
alias git-graph="git log --graph --oneline --decorate --all"
@aguimaraes
aguimaraes / gist:75968af514f908da90af
Created February 1, 2016 10:50
Default.sublime-keymap
[
{ "keys": [":", "v", "s", "p"], "command": "create_pane", "args": {"direction": "right", "give_focus": "true"} },
{ "keys": [":", "s", "p"], "command": "create_pane", "args": {"direction": "down", "give_focus": "true"} },
{ "keys": [":", "b", "d"], "command": "destroy_pane", "args": {"direction": "self"} },
{ "keys": ["f9"], "command": "expand_fqcn" },
{ "keys": ["f10"], "command": "find_use"},
{ "keys": ["f7"], "command": "insert_php_constructor_property"},
]
var elixir = require('laravel-elixir'),
fs = require('fs'),
assetsPath = './resources/assets/',
bowerPath = assetsPath + 'bower/',
cssPath = assetsPath + 'css/';
elixir(function(mix) {
var cssLibraries = [
bowerPath + 'bootstrap/dist/css/bootstrap.min.css',
bowerPath + 'font-awesome/css/font-awesome.min.css',
@aguimaraes
aguimaraes / magento
Created January 12, 2016 14:33
nginx config for magento
server {
# Listen on port 80
listen 80;
server_name magento;
# Path to the files in which you wish to
# store your access and error logs.
access_log /var/log/nginx/magento.access.log;
error_log /var/log/nginx/magento.error.log;
@aguimaraes
aguimaraes / gist:997f836406513a4d24c9
Last active January 5, 2016 18:14
Zip Automação Tasks
**Home**
OK Alinhar faixa de telefones do topo no centro da página
OK Alinhar os estados e números dos telefones de outros estados como tabela
OK Telefone que já estão na faixa, não aparecer novamente na caixa de outros estados
OK Link da categoria mãe no título da descrição
OK Título de Todas as categorias está diferente
-- Trocar o evento de click para hover na passagem das categorias do topo
-- Retirar animação do label da caixa de busca ao clicar
-- Refazer layout da caixa de busca (autobuscar)
alias add='git add'
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias commit='git commit -m'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias git-graph='git log --graph --oneline --decorate --all'
alias git-log-files='git log --name-status'
alias grep='grep --colour=auto'
alias l='ls -CF'
alias la='ls -A'
http://theoatmeal.com/comics/tesla