Skip to content

Instantly share code, notes, and snippets.

View zabaala's full-sized avatar
🏠
Working from home

Mauricio Rodrigues zabaala

🏠
Working from home
View GitHub Profile
@zabaala
zabaala / ddd-domain-driven-design.md
Last active September 9, 2020 12:27
Referências dos materias que consumi nos últimos dias sobre DDD
@zabaala
zabaala / Dockerfile
Created April 20, 2020 18:37
Utils docker image
FROM ubuntu:16.04
LABEL maintainer="Mauricio Rodrigues <mmauricio.vsr@gmail.com>"
RUN echo "----> Upgrading repository" && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get upgrade -y && \
apt-get install -y apt-transport-https \
curl \
package support;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import support.Entity;
/**
* A generic storage.
*
@zabaala
zabaala / package.json
Created September 8, 2018 17:51
A start configuration to include support in any project to react with webpack 4 and Babel 7.
{
"name": "Package Name",
"version": "0.1.0",
"description": "Package description",
"main": "index.js",
"scripts": {
"dev": "webpack --mode development --watch --info-verbosity verbose --progress",
"prod": "npm run production",
"production": "webpack --mode production",
"test": "echo \"Error: no test specified\" && exit 1"
@zabaala
zabaala / remove-bolsonaro-do-facebook.js
Last active September 4, 2018 18:41
Removendo conteúdo do Bolsonaro do Facebook
/**
* Removendo postagens de Bolsonaro 🤮 da sua timeline.
* Siga as instruções a seguir e seja feliz. ❤️
*
* 1. Abra o seu navegador
* 2. Acesse o inspetor de elementos (CTRL+I ou CMD+I)
* 3. Acesse a aba "Console"
* 4. Cole o código abaixo e pressione enter.
*
*/
@zabaala
zabaala / DescTableCommand.php
Last active June 18, 2018 23:36
A desc table command for artisans
<?php
namespace App\Commands;
use Illuminate\Console\Command;
class DescTableCommand extends Command
{
/**
* The name and signature of the console command.
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import InputSize from './InputSize';
class Input extends Component {
constructor(props) {
super(props);
this.state = {
inputValue: ''
<?php
//...
class DbCouponRepository implements CouponRepositoryInterface
{
/**
* @const int
*/
const PAGE_SIZE = 25;
<?php
//...
class FetchAllCouponsMethodObject
{
/**
* @var null|string
*/
private $filterableKeyword;
<?php
//...
interface CouponRepositoryInterface
{
/**
* Get all coupons.
*
* @param null $filterableKeyword